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 breaksEd25519,secp256k1,BIP-340,X25519, and discrete-logPTLCpoint locks. Grover's algorithm achieves at most a quadraticO(2^(n/2))speedup (heavily bottlenecked by serial circuit depth), leaving Zenon'sSHA3-256ledger hashes, PoW,HTLCpreimages,Argon2idkeystores, and 24-wordBIP-39seeds 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):
| Subsystem | Source File in go-zenon-v1 | Current Primitive | Classical Bits | Quantum Bits | Verdict & Action |
|---|---|---|---|---|---|
| Block & State Hashing | internal/crypto/keccak.go | FIPS-202 SHA3-256 | 256 preimage / 128 coll | 128 Grover / 85–128 BHT | SAFE — No change to ComputeHash() or PatchHash() |
| Client PoW Links | internal/pow/pow.go | SHA3-256(Addr || PrevHash) | Difficulty-bound | Quadratic ASIC-like | SAFE — Dynamic Plasma NextWorkPrice auto-adjusts |
| Wallet Mnemonic | internal/crypto/bip39.go | 24-word BIP-39 (PBKDF2-SHA512) | 256 entropy | 128 Grover | SAFE — Existing user seed phrases remain valid |
| HD Key Derivation | internal/crypto/slip0010.go | HMAC-SHA512 (SLIP-0010) | 256 | 128 Grover | SAFE — Add domain-separated PQ hardened path |
| Keystore Encryption | internal/crypto/argon2id.go | Argon2id + AES-256-GCM | 256 | 128 Grover | SAFE — Symmetric vault format stays intact |
| HTLC Atomic Swaps | internal/vm/contracts/htlc/htlc.go | SHA3-256 / SHA-256 (32B preimage) | 256 | 128 Grover | SAFE — Primary PQ cross-chain swap primitive |
| User Address Hash | internal/types/address.go:165 | 0x00 || SHA3-256(pub)[0..19] | 152 preimage | 76 Grover (serial) | SAFE UNEXPOSED — Vulnerable once pub is revealed |
User AccountBlock Sig | internal/crypto/ed25519.go:19 | Ed25519 (RFC 8032) | ~128 | 0 (Broken — Shor) | CRITICAL — Upgrade to ML-DSA-44 / FN-DSA-512 / SLH-DSA |
Pillar Momentum Sig | internal/vm/verifier/momentum.go:110 | Ed25519 (RFC 8032) | ~128 | 0 (Broken — Shor) | CRITICAL — Exposed every 10s; rotate Pillar producers first |
| PTLC Point Locks | internal/vm/contracts/ptlc/ptlc.go:29 | Ed25519 (0), BIP-340 (1), [k]G (2) | ~128 | 0 (Broken — Shor) | HIGH — Add PQ sig types 3..4; sunset types 0..2 |
| Bridge TSS Oracles | internal/vm/contracts/bridge/methods_bridge.go | secp256k1 TSS ECDSA | ~128 | 0 (Broken — Shor) | HIGH — Add t-of-n Guardian ML-DSA-44 quorum |
| Legacy Swap & Pillars | internal/vm/contracts/swap/swap.go:147 | secp256k1 ECDSA recovery + Hash160 | ~128 | 0 (Broken — Shor) | MEDIUM — Swap decayed to 0% at Epoch 389; sunset RegisterLegacy |
| P2P Transport & IDs | internal/p2p/libp2p/server.go:65 | Noise_XX_25519 + secp256k1 peer.ID | ~128 | 0 (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:
- Active Pillar
BlockProducingAddressKeys: EveryMomentum(internal/nom/momentum.go:83) embedsm.PublicKey(32 B). The 30 active Pillars publish their rawEd25519public keys 8,640 times per day. Compromising ≥ 20 Pillar producing keys lets an adversary forge arbitrary chains withinLegacyMaxReorgDepth(or forge a2f+1quorum certificate under future BFT). - Every User Account With
Height >= 1: In Zenon's dual-ledger model, sending tokens toz1q...creates aBlockTypeUserSend(2) on the sender's chain; the recipient's public key is not revealed yet. However, the moment the recipient claims those funds with aBlockTypeUserReceive(3) block—even if they never send a single token out!—internal/vm/verifier/account_block.go:1055requireslen(block.PublicKey) == 32. ThatEd25519public key is now permanently on-chain. - Bridge
DecompressedTssECDSAPubKey: Stored inBridgeInfostate (64 Buncompressedsecp256k1point). Recovering this single scalar allows an attacker to mint arbitrary wrapped assets viaUnwrapTokenor drain bridge vaults on connected EVM chains viaUpdateWrapRequest.
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
0x02addresses andEd25519-PoKoSzero-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.6sequential evaluations of the reversibleKeccak-f[1600]+ key-validation oracle. - NIST
MAXDEPTHReality Check: Grover's algorithm does not parallelize efficiently: splitting acrossSquantum processors reduces depth only bysqrt(S), increasing total gate work to2^76 * sqrt(S). Under NIST's PQC evaluation standard (MAXDEPTH = 2^64 .. 2^96logical gate cycles, where a single reversibleSHA3-256evaluation costs> 2^15Toffoli depth), executing2^76serial 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.7with 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
0x02addresses hash the domain-separated tuple"zenon-pq-addr:v1" || [algID] || pqPublicKeyrather 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.