Skip to main content

NIST Post-Quantum Signatures (Go 1.27+) & Pinned Pure-SHA3-256 WHIR-SHA3-v1 STARKs (v4)

60-Second TL;DR (ZNN-SPEC-PHASE1-v4): Reconciling ZDC-ZP1-HR-001, ZDC-QS-DEEZ-HR-001, and the Round-4 Independent Cryptographic Audit (R4-01, R4-04, R4-09), Zenon Phase 1 v4 locks Go 1.27+-verified APIs, key-bound non-separable signature transcripts (boundDigest32), 32-byte fn-dsa v0.3 seed rules, and true 2^-128 QROM (2^-256 classical RBR) WHIR-SHA3-v1 STARK parameters:

  • 0x01 ML-DSA-44 (FIPS 204): Primary wallet default via Go 1.27+ crypto/mldsa (mldsa.NewPublicKey(mldsa.MLDSA44(), rawPub), GOFIPS140 != v1.0.0 KAT self-test B01).
  • 0x02 FN-DSA-512 (Pinned draft-FIPS-206 / fn-dsa v0.3 32B Seed R4-09): 666 B signature verified via pure-integer NTT (mod 12289); 0.59 ms ideal / 0.9–1.4 ms realistic 4-core Pi 5 QC verify; pure-Go CGO_ENABLED=0 NTRU keygen + signing + verify in go-zenon-v1.
  • 0x03 SLH-DSA-SHAKE-128s (FIPS 205) & 0x04 Dual-Tree XMSS-SHAKE_22_256 (SP 800-208): Pure-Keccak governance/cold-vault tier and 2 Hz (2,884 B sig) zero-lattice emergency validator profile.
  • 0x10 WHIR-SHA3-v1 (True 2^-128 QROM Pure-SHA3-256 STARK R4-04): 57–86 KiB multiproof size (<= 128 KiB = 131,072 B single-proof hard cap) using WHIR domain-shift rate decay ([16, 15, 14]), 32-bit PoW grinding + 224-bit classical query security (256-bit classical RBR -> 128-bit QROM under CMS19), 256-bit extension field, and <= 8,000 Keccak permutations (<= 3.5 ms on Cortex-A76 without FEAT_SHA3).

1. Byte-Exact Post-Quantum Signature Suite & Caching Savings (B01, M04, N01, R4-01, R4-09)​

Scheme (algID)Standard & Pinned RevisionKeygen SeedPublic Key (PK)Signature (Sig)1st-Reveal Witness (PK+Sig)Cached Witness (Sig)Witness Savings (N01)Full-Block Savings (306B Base, N01)
Ed25519 (0x00)RFC 8032 (Sunset in 1E)32 B32 B64 B98 B (v2)65 B33.7%8.2%
ML-DSA-44 (0x01)Final FIPS 204 (Go 1.27+ crypto/mldsa)32 B1,312 B2,420 B3,734 B2,421 B35.16% (-1,313 B)32.50% (4,040 -> 2,727 B)
FN-DSA-512 (0x02)Draft FIPS 206 (fn-dsa v0.3 32B seed R4-09)32 B897 B666 B1,565 B667 B57.38% (-898 B)48.00% (1,871 -> 973 B)
SLH-DSA-128s (0x03)Final FIPS 205 (SHAKE256)48 B32 B7,856 B7,890 B7,857 B0.42% (-33 B)0.40% (8,196 -> 8,163 B)
XMSS-SHAKE_22 (0x04)Final SP 800-208 (Validator only)32 B64 B2,884 B(In manifest)2,885 B——
Hybrid Ed+MLDSA44 (0x81)RFC 8032 AND FIPS 204 (Sunset in 1E; 0x02 or AuthRegistry only R4-01!)64 B1,344 B2,484 B3,830 B (0x02 only)2,485 B35.12% (-1,345 B)32.52% (4,136 -> 2,791 B)

(Note N01 & R4-01: "1st-Reveal Witness" occurs on Height == 1 for a fresh un-precommitted 0x02 account. Unregistered 0x00 accounts on Path C may ONLY use 0x00—never 0x81, preventing third-party mldsaPub splicing—and accounts registered via AuthRegistry omit PublicKeyWire even on their first v2 block!)

Normative Toolchain, Non-Separable Transcript & Draft-Standard Rules (B01, M04, R4-01, R4-09)​

  1. Go 1.27+ crypto/mldsa & GOFIPS140 Startup KAT (B01 Verified):
    • go.mod pins go 1.27.0+ (golang/go#77626 [E1]). Because crypto/mldsa returns an error under legacy GOFIPS140=v1.0.0, znnd executes AssertMLDSAReady() (621b16f8... low-level KAT + b7444ca3... bound-transcript KAT) at startup and refuses to boot if disabled.
  2. Non-Separable Key- & Algorithm-Bound Signing Preimage (boundDigest32, R4-01 Fix):
    • Because AccountBlock.ComputeHash() (306 B) and Momentum.ComputeHash() (208 B) exclude witness bytes, signing raw Hash[:] would leave algID and partner hybrid keys unbound (enabling 0x81 <-> 0x00 stripping and key-splicing ransomware). Every AccountBlock v2 and PQ Momentum v3 signature signs:
      boundDigest32 = FIPS202_SHA3_256(domainCtx || [0x00] || [algID] || FIPS202_SHA3_256(resolvedPubKeyWire)[32] || msg[32])
  3. Provisional FN-DSA-512 (0x02) & NIST FIPS 206 Fixed-Point Evolution (M04, R4-09):
    • 0x02 pins fn-dsa v0.3 (32-byte keygen seed [E2]), implemented completely in pure Go (CGO_ENABLED=0 NTRU tower keygen, emulated-binary64 Gaussian signing, and 0-FPU integer-NTT verification) to guarantee deterministic cross-client Go/Rust HD wallet derivation (Gate G9).
    • Because NIST's 2025–2026 FIPS 206 draft roadmap shifted toward 32.32/64.64 fixed-point keygen/signing (ePrint 2026/1531, 2026/1915), final FIPS 206 will allocate a fresh algID = 0x05 (m/44'/73404'/1'/5'/<idx>') without breaking existing 0x02 accounts.

2. True 2^-128 QROM Parameterization & Cortex-A76 Timing of WHIR-SHA3-v1 (B07, M10, R4-04)​

Why did ZNN-SPEC-PHASE1-v4 upgrade WHIR-SHA3-v1 from 16-bit grinding + 112-bit query security ([18, 14, 10]) to 32-bit grinding + 224-bit classical query security ([16, 15, 14] domain-shift rate decay + 256-bit extension field)?

  • Closing the CMS19 QROM Square-Root Gap (R4-04): Under the Fiat-Shamir / BCS transform in the Quantum Random Oracle Model (Chiesa, Manohar, Spooner, FOCS 2019), a quantum prover attacks per-round transcript grinding and Merkle query indices jointly via Grover / state restoration: 112 + 16 = 128 classical bits yields only sqrt(2^128) = 2^64 quantum query resistance (16-bit grinding gives 8 quantum bits!). Achieving <= 2^-128 QROM soundness (~2^128 quantum SHA3-256 queries) requires >= 256 bits of classical round-by-round soundness (224-bit classical query security + 32-bit classical grinding = 112 + 16 = 128 quantum bits) plus a >= 256-bit extension field (Goldilocks^4 or KoalaBear^8) so OOD/sumcheck errors also stay <= 2^-256 classical (<= 2^-128 QROM).
  • True WHIR Domain-Shift Rate Decay (Arnon et al., EUROCRYPT 2025 [R49], R4-04): On the outer $2^16$-row recursion wrapper with initial blowup $16\times$ ($\rho_0 = 2^-4$, $2^4$-bundled coset tree depth 16), shrinking evaluation domains by $2^1$ per $2^4$-folding round yields depths [16, 15, 14] and decaying rates $\rho_0 = 2^-4, \rho_1 = 2^-7, \rho_2 = 2^-10$:
    • Conjectured Capacity ([56, 32, 23] = 111 queries + 32-bit grind = 256b classical / 128b QROM): ~1,110 deduplicated SHA3-256 multiproof hashes (34.7 KiB) + 18.0 KiB 256-bit extension evaluations + 4.0 KiB headers = ~56.7 KiB.
    • Unconditional Proven Johnson Bound ([112, 64, 45] = 221 queries + 32-bit grind = 256b classical / 128b QROM): ~1,989 multiproof hashes (62.2 KiB) + 20.0 KiB evaluations + 4.0 KiB headers = ~86.2 KiB (comfortably inside the 90 KiB planning figure and 128 KiB = 131,072 B hard cap!).
  • Honest Cortex-A76 (ARMv8.2 Without FEAT_SHA3) Verifier Budget (R4-04): Raspberry Pi 5's Cortex-A76 (2.4 GHz) lacks ARMv8.4 FEAT_SHA3 hardware instructions (~380 ns per scalar 64-bit Keccak-f[1600] in pure Go). Because WHIR's 111–221 queries require only ~2,200–3,500 Keccak permutations (~0.85–1.35 ms typical), tightening MaxSHA3KeccakPermutations = 8,000 bounds worst-case single-core Pi 5 verification to <= 3.5 ms (< 0.5 ms on Apple Silicon / ARMv8.4+ with FEAT_SHA3), subject to physical Gate ZP-Q20 qualification (B07, M11).