Skip to main content

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, and syrius.

Single-File LLM Ingestion: Point any AI coding agent at /llms-full.txt (full concatenated corpus) or /llms.txt (structured index + raw .md endpoints).


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):

algIDAlgorithmNIST StandardMath FamilyPK / Sig SizeCached Repeat-Tx WitnessPrimary Role on Zenon
0x00Ed25519 (Legacy)RFC 8032Twisted Edwards32 B / 64 B96 B (no cache)Legacy v1 compatibility; sunset in Phase 3
0x01ML-DSA-44FIPS 204Module-LWE Lattice1,312 B / 2,420 B2,421 BPrimary Default: User AccountBlocks & Pillar Momentums (native Go 1.26 crypto/mldsa, 32B seed, zero CGo)
0x02FN-DSA-512 (Falcon)FIPS 206NTRU Lattice897 B / 666 B667 BCompact / BFT Tier: High-frequency accounts & 21-of-30 Narwhal/Tusk BFT quorum certificates (~14 KB)
0x03SLH-DSA-SHAKE-128sFIPS 205Stateless Hash (Keccak)32 B / 7,856 B7,857 BZero-Lattice Vaults: SporkAddress, BridgeAdministrator, Pillar StakeAddresses, and cold custody
0x81Ed25519 + ML-DSA-44HybridCurve + Module-LWE1,344 B / 2,484 B2,485 BOptional 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:

  1. SegWit-Style Witness Separation Already Exists in v1: In internal/nom/account_block.go:124 and internal/nom/momentum.go:132, PublicKey and Signature are already excluded from AccountBlock.ComputeHash() (fixed 306-byte preimage), client PoW (SHA3-256(Address || PreviousHash)), and Momentum.Content (60-byte AccountHeaders). Upgrading to multi-kilobyte witnesses mutates zero block hashes, zero FromBlockHash links, and zero PoW nonces.
  2. Sequential Per-Account Chains Enable Public-Key Caching: Every user account is an ordered chain (Height = 1, 2, 3, ...). Recording an account's post-quantum PublicKey once in AccountStore (at Height = 1 or via AuthRegistry) lets every subsequent AccountBlock omit PublicKey (Protobuf tag 22), slashing steady-state witness sizes by 35% (ML-DSA-44) to 57% (FN-DSA-512).
  3. 30-Pillar Consensus Avoids the BLS12-381 Aggregation Crisis: Ethereum (~1M validators) and Solana (~1,500 validators) rely on pairing-based BLS12-381 signature aggregation, which Shor's algorithm breaks completely. Zenon's LegacyDposV1 uses 1 Pillar signature per 10-second Momentum, and future MomentumVersionV3 Narwhal & Tusk (NodeCount = 30, quorum 2f+1 = 21 in internal/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​

Critical Consensus & Economic Findings from go-zenon-v1

A naive drop-in replacement of crypto.VerifyEd25519 fails five Zenon-specific invariants. Every compliant implementation MUST address all five:

  1. Address-Locked Stakes & Pillars Require In-Place Key Rotation (AuthRegistry): PillarInfo.StakeAddress, Sentinel registrations, and 1–12 month Stake entries are bound to existing 0x00 addresses (internal/vm/contracts/pillar/pillar.go:220). Users cannot transfer locked positions to a new address. Zenon must decouple an account's 20-byte Address identity from its active authentication key via an embedded AuthRegistry contract while keeping types.Address at 20 bytes (0x00 legacy, 0x01 contract, 0x02 PQ user) so all 12 embedded contract ABIs remain untouched.
  2. Unpriced Witness Bytes in Dynamic Plasma (GetBasePlasmaForAccountBlock): In internal/pow/plasma.go:269, ABByteDataPlasma = 68 is charged only on block.Data, charging 0 plasma for PublicKey and Signature. Leaving 1.5 KB – 7.9 KB PQ witnesses free in a feeless PoW/QSR network opens a trivial bandwidth and pebble/v2 storage bloat attack.
  3. First-Receive Public-Key Exposure on 0x00 Addresses: Untouched z1q... addresses hide Ed25519 public keys behind SHA3-256(pub)[0..19] (152 bits → 2^76 sequential Grover cost). However, claiming funds requires publishing a BlockTypeUserReceive (3) block, which attaches block.PublicKey on-chain! Phase 1 must let receive-only 0x00 holders atomically rotate to a PQ key on their very first transaction—and Phase 3 provides Ed25519-PoKoS STARK seed proofs for dormant accounts.
  4. Classical Curve Assumptions Inside Embedded Contracts: PtlcContract (PointTypeSecp256k1Point [k]G adapter locks), BridgeContract (DecompressedTssECDSAPubKey single-key ECDSA), and Pillar.RegisterLegacy (secp256k1 recovery) require targeted PQ upgrades or Spork sunsets.
  5. P2P Harvest-Now-Decrypt-Later (Noise_XX_25519 & RLPx): Modern go-libp2p (internal/p2p/libp2p/server.go:65) uses X25519 ECDH and Secp256k1 peer IDs. Upgrading stream security to hybrid X25519 + ML-KEM-768 (via Go 1.26 crypto/mlkem) protects Pillar and Sentinel gossip immediately.

Documentation Map​

SectionDocumentPurpose
Threat & SurveyQuantum Threat Model on ZenonPrimitive-by-primitive audit of go-zenon-v1 under Shor & Grover
Threat & SurveyBitcoin, Solana & Peer L1 SurveyBIP-360/361, Solana Tx v1 / Quantumglow / PoKoS, Algorand, Sui, Aptos
Threat & SurveyPost-Quantum Signature EvaluationExact byte sizes, verification µs, floating-point determinism & Momentum math
Specification0x02 Addresses, AuthRegistry & KDF20B address preservation, in-place key rotation ABI, and BIP-39 KDF
SpecificationAccountBlock v2 & PK CachingalgID wire format, AccountStore PK cache, and Stage-2 pre-verification
SpecificationDynamic Plasma Witness PricingExact witness Plasma formula & Momentum byte-cap enforcement
SpecificationConsensus, Contracts & P2PPillar rotation, Narwhal BFT certs, t-of-n PQ Bridge, PTLC/HTLC & ML-KEM-768
Migration3-Phase Spork & Ed25519-PoKoSActivation timeline, legacy sunset rules, and STARK seed-ownership rescue
Migrationgo-zenon-v1 Go 1.26 Blueprint8-stage LLM coding blueprint mapped to L0–L9 packages + Bend proof laws