Post-Quantum Zenon (zenon-post-quantum)
For Humans & AI Coding Agents: Every page in this documentation portal opens with a 60-second TL;DR, followed by byte-exact wire layouts, state-machine invariants, and source-grounded file maps against
0x3639/go-zenon-v1,0x3639/zenon-rs, andsyrius.Single-File LLM Ingestion: Point any AI coding agent at
/llms-full.txt(full concatenated corpus) or/llms.txt(structured index + raw.mdendpoints).
60-Second TL;DR
Cryptographically Relevant Quantum Computers (CRQCs) running Shor's algorithm break every elliptic-curve primitive currently securing the Zenon Network of Momentum (Ed25519 account & Momentum signatures, secp256k1 Bridge TSS / Swap / P2P keys, BIP-340 & [k]G PTLC locks, and X25519 Noise handshakes). By contrast, Zenon's symmetric and hash primitives (FIPS-202 SHA3-256, Argon2id, AES-256-GCM, HMAC-SHA512, and 24-word BIP-39 mnemonics) retain ≥ 128-bit post-quantum security against Grover's algorithm.
Rather than betting the ledger on a single mathematical family, Zenon should deploy an algorithm-agile, 3-tier NIST post-quantum signature framework via Spork (AccountBlockVersion = 2):
algID | Algorithm | NIST Standard | Math Family | PK / Sig Size | Cached Repeat-Tx Witness | Primary Role on Zenon |
|---|---|---|---|---|---|---|
0x00 | Ed25519 (Legacy) | RFC 8032 | Twisted Edwards | 32 B / 64 B | 96 B (no cache) | Legacy v1 compatibility; sunset in Phase 3 |
0x01 | ML-DSA-44 | FIPS 204 | Module-LWE Lattice | 1,312 B / 2,420 B | 2,421 B | Primary Default: User AccountBlocks & Pillar Momentums (native Go 1.26 crypto/mldsa, 32B seed, zero CGo) |
0x02 | FN-DSA-512 (Falcon) | FIPS 206 | NTRU Lattice | 897 B / 666 B | 667 B | Compact / BFT Tier: High-frequency accounts & 21-of-30 Narwhal/Tusk BFT quorum certificates (~14 KB) |
0x03 | SLH-DSA-SHAKE-128s | FIPS 205 | Stateless Hash (Keccak) | 32 B / 7,856 B | 7,857 B | Zero-Lattice Vaults: SporkAddress, BridgeAdministrator, Pillar StakeAddresses, and cold custody |
0x81 | Ed25519 + ML-DSA-44 | Hybrid | Curve + Module-LWE | 1,344 B / 2,484 B | 2,485 B | Optional Phase 1–2 defense-in-depth transition mode |
Why Zenon Upgrades Cleaner Than Bitcoin or Solana
Inspecting go-zenon-v1 reveals three structural properties of the Network of Momentum (NoM) dual ledger that eliminate the hardest post-quantum bottlenecks faced by UTXO and monolithic chains:
- SegWit-Style Witness Separation Already Exists in
v1: Ininternal/nom/account_block.go:124andinternal/nom/momentum.go:132,PublicKeyandSignatureare already excluded fromAccountBlock.ComputeHash()(fixed306-bytepreimage), client PoW (SHA3-256(Address || PreviousHash)), andMomentum.Content(60-byteAccountHeaders). Upgrading to multi-kilobyte witnesses mutates zero block hashes, zeroFromBlockHashlinks, and zero PoW nonces. - Sequential Per-Account Chains Enable Public-Key Caching:
Every user account is an ordered chain (
Height = 1, 2, 3, ...). Recording an account's post-quantumPublicKeyonce inAccountStore(atHeight = 1or viaAuthRegistry) lets every subsequentAccountBlockomitPublicKey(Protobuf tag 22), slashing steady-state witness sizes by 35% (ML-DSA-44) to 57% (FN-DSA-512). - 30-Pillar Consensus Avoids the BLS12-381 Aggregation Crisis:
Ethereum (~1M validators) and Solana (~1,500 validators) rely on pairing-based
BLS12-381signature aggregation, which Shor's algorithm breaks completely. Zenon'sLegacyDposV1uses 1 Pillar signature per 10-secondMomentum, and futureMomentumVersionV3Narwhal & Tusk (NodeCount = 30, quorum2f+1 = 21ininternal/consensus/engine/seam.go:202) requires only~14 KB(FN-DSA-512) or~51 KB(ML-DSA-44) per quorum certificate with zero aggregation.
Five Protocol Traps That Must Be Solved Together
go-zenon-v1A naive drop-in replacement of crypto.VerifyEd25519 fails five Zenon-specific invariants. Every compliant implementation MUST address all five:
- Address-Locked Stakes & Pillars Require In-Place Key Rotation (
AuthRegistry):PillarInfo.StakeAddress,Sentinelregistrations, and 1–12 monthStakeentries are bound to existing0x00addresses (internal/vm/contracts/pillar/pillar.go:220). Users cannot transfer locked positions to a new address. Zenon must decouple an account's 20-byteAddressidentity from its active authentication key via an embeddedAuthRegistrycontract while keepingtypes.Addressat 20 bytes (0x00legacy,0x01contract,0x02PQ user) so all 12 embedded contract ABIs remain untouched. - Unpriced Witness Bytes in Dynamic Plasma (
GetBasePlasmaForAccountBlock): Ininternal/pow/plasma.go:269,ABByteDataPlasma = 68is charged only onblock.Data, charging0plasma forPublicKeyandSignature. Leaving1.5 KB – 7.9 KBPQ witnesses free in a feeless PoW/QSR network opens a trivial bandwidth andpebble/v2storage bloat attack. - First-Receive Public-Key Exposure on
0x00Addresses: Untouchedz1q...addresses hideEd25519public keys behindSHA3-256(pub)[0..19](152bits →2^76sequential Grover cost). However, claiming funds requires publishing aBlockTypeUserReceive(3) block, which attachesblock.PublicKeyon-chain! Phase 1 must let receive-only0x00holders atomically rotate to a PQ key on their very first transaction—and Phase 3 providesEd25519-PoKoSSTARK seed proofs for dormant accounts. - Classical Curve Assumptions Inside Embedded Contracts:
PtlcContract(PointTypeSecp256k1Point[k]Gadapter locks),BridgeContract(DecompressedTssECDSAPubKeysingle-key ECDSA), andPillar.RegisterLegacy(secp256k1recovery) require targeted PQ upgrades or Spork sunsets. - P2P Harvest-Now-Decrypt-Later (
Noise_XX_25519&RLPx): Moderngo-libp2p(internal/p2p/libp2p/server.go:65) usesX25519ECDH andSecp256k1peer IDs. Upgrading stream security to hybridX25519 + ML-KEM-768(via Go 1.26crypto/mlkem) protects Pillar and Sentinel gossip immediately.
Documentation Map
| Section | Document | Purpose |
|---|---|---|
| Threat & Survey | Quantum Threat Model on Zenon | Primitive-by-primitive audit of go-zenon-v1 under Shor & Grover |
| Threat & Survey | Bitcoin, Solana & Peer L1 Survey | BIP-360/361, Solana Tx v1 / Quantumglow / PoKoS, Algorand, Sui, Aptos |
| Threat & Survey | Post-Quantum Signature Evaluation | Exact byte sizes, verification µs, floating-point determinism & Momentum math |
| Specification | 0x02 Addresses, AuthRegistry & KDF | 20B address preservation, in-place key rotation ABI, and BIP-39 KDF |
| Specification | AccountBlock v2 & PK Caching | algID wire format, AccountStore PK cache, and Stage-2 pre-verification |
| Specification | Dynamic Plasma Witness Pricing | Exact witness Plasma formula & Momentum byte-cap enforcement |
| Specification | Consensus, Contracts & P2P | Pillar rotation, Narwhal BFT certs, t-of-n PQ Bridge, PTLC/HTLC & ML-KEM-768 |
| Migration | 3-Phase Spork & Ed25519-PoKoS | Activation timeline, legacy sunset rules, and STARK seed-ownership rescue |
| Migration | go-zenon-v1 Go 1.26 Blueprint | 8-stage LLM coding blueprint mapped to L0–L9 packages + Bend proof laws |