Quantum-secure, emotionally tuned cryptography and mesh logic.
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.
- Quantum-secure key generation
- LYRA glyph modulation
- Mesh network propagation and validation
- Ethical revocation and stewardship
QALX is modular:
core/qalx.go: Core types and metric initializerscore/lyra.go: LYRA glyph logic and harmonicscore/mesh.go: Mesh node/network logic and validationcore/entropy.go: Entropy pool, key generation, and QRE security
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
}glyph := LyraGlyph{Emotion: "joy", Intensity: 0.9, EthicsScore: 0.95, Timestamp: 1234567890}
metrics := InitializeQuantumMetricsWithGlyph(glyph)err := mesh.ValidatePattern("abc12345", []string{"xyz12345", "def67890"})
if err != nil {
// handle error
}QRE is the heart of QALX’s quantum security. It combines classical and quantum metrics with emotional glyph 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.
- Initialize Go module:
go mod init qalx go mod tidy
- Install dependencies:
go get github.com/google/uuid
- See
core/qalx.gofor main algorithm and usage examples.
See core/qalx.go for the main algorithm. Explore docs/manifesto.md for the philosophical and ethical framing.
- Clone the repo:
git clone https://github.com/MyndScript/QALX.git cd QALX - Build for your platform:
go build -o qalx-linux-amd64 ./main.go
- Run with CLI flags:
./qalx-linux-amd64 --emotion surprise --intensity 0.8 --ethics 0.95
Download prebuilt binaries from the Releases page, or build from source as above.
| Flag | Type | Description | Default |
|---|---|---|---|
| --emotion | string | LyraGlyph emotion | joy |
| --intensity | float | LyraGlyph intensity | 1.0 |
| --ethics | float | LyraGlyph ethics score | 0.9 |
The CLI prints a QuantumMetrics struct with all calculated fields.
Build for your platform (example for Linux amd64):
go build -o qalx-linux-amd64 ./main.goRun with CLI flags:
./qalx-linux-amd64 --emotion surprise --intensity 0.8 --ethics 0.95import subprocess
subprocess.run(["./qalx-linux-amd64", "--emotion", "surprise", "--intensity", "0.8", "--ethics", "0.95"])const { execFile } = require('child_process');
execFile('./qalx-linux-amd64', ['--emotion', 'surprise', '--intensity', '0.8', '--ethics', '0.95'], (err, stdout, stderr) => {
console.log(stdout);
});