synor/crates/synor-crypto/src
Gulshan Yadav 9414ef5d99 feat(crypto): add SPHINCS+ and FALCON post-quantum algorithms
Phase 13 Milestone 2 - Enhanced Quantum Cryptography:

SPHINCS+ (FIPS 205 / SLH-DSA):
- Hash-based signatures as backup if lattice schemes are compromised
- Three variants: 128s (~7.8KB), 192s (~16KB), 256s (~30KB)
- Relies only on hash function security (conservative choice)
- SphincsKeypair, SphincsPublicKey, SphincsSecretKey, SphincsSignature

FALCON (FIPS 206 / FN-DSA):
- Compact lattice signatures for bandwidth-constrained devices
- FALCON-512: 128-bit security, ~690 byte signatures
- FALCON-1024: 256-bit security, ~1,330 byte signatures
- ~79% smaller than Dilithium3 signatures
- Ideal for mobile wallets and L2 batch transactions

Algorithm Comparison:
| Algorithm | Security | Sig Size | Use Case |
|-----------|----------|----------|----------|
| Ed25519 | 128-bit | 64 B | Classical (fast) |
| Dilithium3 | 192-bit | 3,293 B | Default PQ |
| FALCON-512 | 128-bit | 690 B | Mobile/IoT |
| SPHINCS+-128s | 128-bit | 7,856 B | Backup |

All 40 unit tests + 5 doc tests passing.
2026-01-19 09:52:16 +05:30
..
falcon.rs feat(crypto): add SPHINCS+ and FALCON post-quantum algorithms 2026-01-19 09:52:16 +05:30
kdf.rs fix: resolve all clippy warnings for CI 2026-01-08 05:58:22 +05:30
keypair.rs style: format all Rust code with cargo fmt 2026-01-08 05:22:24 +05:30
lib.rs feat(crypto): add SPHINCS+ and FALCON post-quantum algorithms 2026-01-19 09:52:16 +05:30
mnemonic.rs style: format all Rust code with cargo fmt 2026-01-08 05:22:24 +05:30
signature.rs Initial commit: Synor blockchain monorepo 2026-01-08 05:22:17 +05:30
sphincs.rs feat(crypto): add SPHINCS+ and FALCON post-quantum algorithms 2026-01-19 09:52:16 +05:30