Skip to main content

Quantum Threat Model on Zenon (NoM)

TL;DR: Quantum algorithms split Zenon's cryptography cleanly in half. Shor's algorithm runs in polynomial time O((log N)^3) and completely breaks Ed25519, secp256k1, BIP-340, X25519, and discrete-log PTLC point locks. Grover's algorithm achieves at most a quadratic O(2^(n/2)) speedup (heavily bottlenecked by serial circuit depth), leaving Zenon's SHA3-256 ledger hashes, PoW, HTLC preimages, Argon2id keystores, and 24-word BIP-39 seeds post-quantum secure today.


Complete go-zenon-v1 Cryptographic Surface Audit​

Every cryptographic package and consensus path in go-zenon-v1 was audited against both Shor's algorithm (abelian hidden subgroup / discrete logarithm) and Grover / BHT quantum search (preimage & collision finding):

SubsystemSource File in go-zenon-v1Current PrimitiveClassical BitsQuantum BitsVerdict & Action
Block & State Hashinginternal/crypto/keccak.goFIPS-202 SHA3-256256 preimage / 128 coll128 Grover / 85–128 BHTSAFE — No change to ComputeHash() or PatchHash()
Client PoW Linksinternal/pow/pow.goSHA3-256(Addr || PrevHash)Difficulty-boundQuadratic ASIC-likeSAFE — Dynamic Plasma NextWorkPrice auto-adjusts
Wallet Mnemonicinternal/crypto/bip39.go24-word BIP-39 (PBKDF2-SHA512)256 entropy128 GroverSAFE — Existing user seed phrases remain valid
HD Key Derivationinternal/crypto/slip0010.goHMAC-SHA512 (SLIP-0010)256128 GroverSAFE — Add domain-separated PQ hardened path
Keystore Encryptioninternal/crypto/argon2id.goArgon2id + AES-256-GCM256128 GroverSAFE — Symmetric vault format stays intact
HTLC Atomic Swapsinternal/vm/contracts/htlc/htlc.goSHA3-256 / SHA-256 (32B preimage)256128 GroverSAFE — Primary PQ cross-chain swap primitive
User Address Hashinternal/types/address.go:1650x00 || SHA3-256(pub)[0..19]152 preimage76 Grover (serial)SAFE UNEXPOSED — Vulnerable once pub is revealed
User AccountBlock Siginternal/crypto/ed25519.go:19Ed25519 (RFC 8032)~1280 (Broken — Shor)CRITICAL — Upgrade to ML-DSA-44 / FN-DSA-512 / SLH-DSA
Pillar Momentum Siginternal/vm/verifier/momentum.go:110Ed25519 (RFC 8032)~1280 (Broken — Shor)CRITICAL — Exposed every 10s; rotate Pillar producers first
PTLC Point Locksinternal/vm/contracts/ptlc/ptlc.go:29Ed25519 (0), BIP-340 (1), [k]G (2)~1280 (Broken — Shor)HIGH — Add PQ sig types 3..4; sunset types 0..2
Bridge TSS Oraclesinternal/vm/contracts/bridge/methods_bridge.gosecp256k1 TSS ECDSA~1280 (Broken — Shor)HIGH — Add t-of-n Guardian ML-DSA-44 quorum
Legacy Swap & Pillarsinternal/vm/contracts/swap/swap.go:147secp256k1 ECDSA recovery + Hash160~1280 (Broken — Shor)MEDIUM — Swap decayed to 0% at Epoch 389; sunset RegisterLegacy
P2P Transport & IDsinternal/p2p/libp2p/server.go:65Noise_XX_25519 + secp256k1 peer.ID~1280 (HNDL + Shor)HIGH — Add X25519MLKEM768 + PQ peer.IDs; retire RLPx

Threat Vector Taxonomy on Zenon​

1. Long-Exposure Shor Attacks (Highest Immediate Risk)​

A long-exposure attack targets any account whose classical public key is already recorded on the public ledger, giving a quantum adversary unlimited offline wall-clock time (hours, days, or weeks) to compute the discrete logarithm d = log_G(P).

On Zenon Alphanet (chainId = 1), three classes of keys suffer permanent long-exposure visibility:

  1. Active Pillar BlockProducingAddress Keys: Every Momentum (internal/nom/momentum.go:83) embeds m.PublicKey (32 B). The 30 active Pillars publish their raw Ed25519 public keys 8,640 times per day. Compromising ≥ 20 Pillar producing keys lets an adversary forge arbitrary chains within LegacyMaxReorgDepth (or forge a 2f+1 quorum certificate under future BFT).
  2. Every User Account With Height >= 1: In Zenon's dual-ledger model, sending tokens to z1q... creates a BlockTypeUserSend (2) on the sender's chain; the recipient's public key is not revealed yet. However, the moment the recipient claims those funds with a BlockTypeUserReceive (3) block—even if they never send a single token out!—internal/vm/verifier/account_block.go:1055 requires len(block.PublicKey) == 32. That Ed25519 public key is now permanently on-chain.
  3. Bridge DecompressedTssECDSAPubKey: Stored in BridgeInfo state (64 B uncompressed secp256k1 point). Recovering this single scalar allows an attacker to mint arbitrary wrapped assets via UnwrapToken or drain bridge vaults on connected EVM chains via UpdateWrapRequest.

2. Short-Exposure (Mempool / Slot) Shor Attacks​

A short-exposure attack occurs when a previously unexposed account broadcasts its first transaction (Height = 1), revealing PublicKey in the mempool (TxMsg 0x12), and a fast CRQC derives the private key and front-runs the transaction before confirmation.

  • On Bitcoin (~600s block interval), the mempool exposure window is 10–60+ minutes.
  • On Zenon (BlockTimeSec = 10s), the mempool window is ≤ 10 seconds—requiring a quantum computer orders of magnitude faster than one needed for long-exposure theft.
  • Nevertheless, post-quantum 0x02 addresses and Ed25519-PoKoS zero-knowledge seed migrations eliminate both long-exposure and short-exposure windows completely.

3. Address Truncation (152-bit SHA3-256) Under Grover's Algorithm​

Zenon user addresses (internal/types/address.go:165) are 20 bytes:

Address[0] = ClassByte (0x00 = Legacy User, 0x01 = Embedded Contract, 0x02 = PQ User)
Address[1..20] = SHA3-256(PublicKeyPayload)[0..19] // 19 bytes = 152 bits

How secure is a 152-bit truncated SHA3-256 digest against a quantum preimage attack finding some valid public key P' that hashes to an existing target address?

  • Quantum Preimage Cost (Grover): Finding a preimage for a 152-bit output requires (pi / 4) * 2^(152 / 2) ≈ 2^75.6 sequential evaluations of the reversible Keccak-f[1600] + key-validation oracle.
  • NIST MAXDEPTH Reality Check: Grover's algorithm does not parallelize efficiently: splitting across S quantum processors reduces depth only by sqrt(S), increasing total gate work to 2^76 * sqrt(S). Under NIST's PQC evaluation standard (MAXDEPTH = 2^64 .. 2^96 logical gate cycles, where a single reversible SHA3-256 evaluation costs > 2^15 Toffoli depth), executing 2^76 serial Grover iterations exceeds realistic physical bounds for decades.
  • Collision Attacks Do Not Steal Existing Accounts: Brassard-Høyer-Tapp quantum collision search (O(2^(n/3)) ≈ 2^50.7 with massive QRAM) only lets an attacker generate two colliding addresses of their own before funding—which has no economic exploit vector in Zenon because embedded contracts never authorize callers by cross-user hash collisions.
  • Why Domain Separation Still Matters: To prevent cross-algorithm preimage grinding, PQ 0x02 addresses hash the domain-separated tuple "zenon-pq-addr:v1" || [algID] || pqPublicKey rather than raw key bytes.

4. Harvest-Now-Decrypt-Later (HNDL) on P2P Gossip​

Even before a CRQC exists, state-level adversaries can record encrypted P2P TCP streams between Pillar validators and Sentinel nodes (internal/p2p/libp2p/server.go:26, Noise_XX_25519_ChaChaPoly_SHA256, and legacy DevP2P RLPx secp256k1 ECIES) to retroactively deanonymize transaction originators or map Pillar validator topologies. Upgrading go-libp2p stream negotiation to hybrid X25519 + ML-KEM-768 closes HNDL immediately with ~1.1 KB of handshake overhead per TCP connection.