Skip to content

MyndScript/QALX

SLSA Go releaserLicense: MITGo Report Card Release

QALX

Quantum-secure, emotionally tuned cryptography and mesh logic.

Vision

Security as Empathy. Quantum-Resilient. Emotionally Tuned.

QALX is a living, ethically aware security organism. It combines quantum-resistant cryptography, emotional modulation (LYRA), and mesh network propagation to create proactive, multidimensional security.

Features

  • Quantum-secure key generation
  • LYRA glyph modulation
  • Mesh network propagation and validation
  • Ethical revocation and stewardship

How It Works

QALX is modular:

  • core/qalx.go: Core types and metric initializers
  • core/lyra.go: LYRA glyph logic and harmonics
  • core/mesh.go: Mesh node/network logic and validation
  • core/entropy.go: Entropy pool, key generation, and QRE security

API Documentation & Examples

Mesh Logic Example

import "github.com/MyndScript/QALX/core/mesh"

// Create a mesh node
metrics := QuantumMetrics{Coherence: 0.95, Phase: 0.5, Amplitude: 0.8}
node := mesh.GenerateMeshNode(metrics)

// Add to mesh network
net := mesh.NewMeshNetwork()
net.AddNode(node)

// Validate node
err := mesh.ValidateMeshNode(node, 1.0, LyraGlyph{Emotion: "trust", Intensity: 1.0, EthicsScore: 1.0, Timestamp: node.Timestamp}, 1.0)
if err != nil {
	// handle error
}

Emotional Modulation Example

glyph := LyraGlyph{Emotion: "joy", Intensity: 0.9, EthicsScore: 0.95, Timestamp: 1234567890}
metrics := InitializeQuantumMetricsWithGlyph(glyph)

Pattern Validation Example

err := mesh.ValidatePattern("abc12345", []string{"xyz12345", "def67890"})
if err != nil {
	// handle error
}

Quantum Resistance Entropy (QRE)

QRE is the heart of QALX’s quantum security. It combines classical and quantum metrics with emotional glyph modulation.

Emotional & Ethical Modulation

QALX uses emotional states (via LYRA glyphs) and ethical scores to modulate cryptographic parameters and mesh propagation. Emotional intensity and ethics scores directly influence entropy, validation, and node behavior.

Impact:

  • High emotional intensity increases entropy quality and mesh coherence.
  • Ethics score modulates quantum resistance and validation scores.
  • Emotional states propagate through the mesh, affecting node trust and revocation logic.

Adversarial Models:

  • QALX anticipates adversaries that may attempt to mimic or manipulate emotional states. Future tests simulate these scenarios to ensure resilience.

Stewardship & Audit:

  • Contributors are stewards of emotional and ethical integrity.
  • All changes to LYRA logic or mesh propagation require rationale and review.
  • Ongoing audit and algorithm evolution are encouraged—see CONTRIBUTING.md for stewardship roles and upgrade guidelines.

QRE Formula:

 QRE = log₂(Eₛ × Pₚ × Φₕ × Ψₑ)
  • Eₛ: Entropy spread across keyspace (Grover resistance)
  • Pₚ: Period obfuscation factor (Shor resistance)
  • Φₕ: Hybrid mimicry distortion (wave-emulated attack resistance)
  • Ψₑ: Emotional glyph modulation (LYRA)

QRE is used in all key generation and mesh validation logic.

Quickstart

  1. Initialize Go module:
    go mod init qalx
    go mod tidy
  2. Install dependencies:
    go get github.com/google/uuid
  3. See core/qalx.go for main algorithm and usage examples.

Getting Started

See core/qalx.go for the main algorithm. Explore docs/manifesto.md for the philosophical and ethical framing.

Quickstart

  1. Clone the repo:
    git clone https://github.com/MyndScript/QALX.git
    cd QALX
  2. Build for your platform:
    go build -o qalx-linux-amd64 ./main.go
  3. Run with CLI flags:
    ./qalx-linux-amd64 --emotion surprise --intensity 0.8 --ethics 0.95

Install

Download prebuilt binaries from the Releases page, or build from source as above.

CLI Flags

Flag Type Description Default
--emotion string LyraGlyph emotion joy
--intensity float LyraGlyph intensity 1.0
--ethics float LyraGlyph ethics score 0.9

Output

The CLI prints a QuantumMetrics struct with all calculated fields.

QALX CLI Usage

Build and Run

Build for your platform (example for Linux amd64):

go build -o qalx-linux-amd64 ./main.go

Run with CLI flags:

./qalx-linux-amd64 --emotion surprise --intensity 0.8 --ethics 0.95

Use from Python

import subprocess
subprocess.run(["./qalx-linux-amd64", "--emotion", "surprise", "--intensity", "0.8", "--ethics", "0.95"])

Use from Node.js

const { execFile } = require('child_process');
execFile('./qalx-linux-amd64', ['--emotion', 'surprise', '--intensity', '0.8', '--ethics', '0.95'], (err, stdout, stderr) => {
	console.log(stdout);
});

About

Quantum Level Security

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages