Skip to main content

Round 3 Independent Verification & Response: ZDC-QS-DEEZ-HR-001 (26 / 26 Findings)

Target Review: ZDC-QS-DEEZ-HR-001 (DeeZ_Post_Quantum_Hostile_Review_v0.1_tminusz.md) (TminusZ research program, 2026-12-04) Audited Snapshot Note: ZDC-QS-DEEZ-HR-001 audited edgepillar/zenon-post-quantum@e5930af (a fork of the retired 9-page standalone PQ draft before unification into zenon-phase-1 and before ZNN-SPEC-PHASE1-v2) alongside 0x3639/go-zenon-v1@124b4ced and zenon-network/go-zenon@e8986a63. Verification Methodology: Rather than blindly accepting reviewer claims, every single one of the 26 findings (B01–B12, M01–M12, N01–N02) was independently checked against local go-zenon-v1, go-zenon, znn_sdk_dart, go1.27.4 stdlib (crypto/mldsa), and executable Python/Go math, yielding:

  • 12 Accepted Residual Fixes + 3 Self-Caught Source Fixes integrated into ZNN-SPEC-PHASE1-v3;
  • 4 Accepted-With-Technical-Correction Dispositions (where the valid kernel was adopted while correcting reviewer overstatements on MAXDEPTH Grover, go-zenon KeyFiles, IsUserAddress, and 400 KB Anza proofs);
  • 10 Stale-Target Dispositions already resolved in ZNN-SPEC-PHASE1-v2 (cee69c0).

1. Three Self-Caught Bugs Uncovered While Independently Checking ZDC-QS-DEEZ-HR-001​

Checking the actual codebases and compiler APIs rather than taking the review at face value uncovered three subtle issues that neither Round 2 nor Round 3 explicitly named:

  1. Go 1.27.4 crypto/mldsa Exact Constructor Signatures & GOFIPS140=v1.0.0 Runtime Trap (B01 Deep Check): Running go doc -all crypto/mldsa on go1.27.4 revealed (a) the exact stdlib constructors are mldsa.NewPrivateKey(mldsa.MLDSA44(), seed32), mldsa.NewPublicKey(mldsa.MLDSA44(), rawPub), sk.SignDeterministic(msg, &mldsa.Options{Context: ctx}), and mldsa.Verify(pk, msg, sig, &mldsa.Options{Context: ctx}) (replacing v2's NewPublicKey44 shorthand), and (b) Go 1.27 disables crypto/mldsa at runtime if GOFIPS140=v1.0.0 is active—fixed in v3 via AssertMLDSAReady() (621b16f8... deterministic startup KAT in Go 1.27+ Blueprint §2).
  2. Live secp256k1 Mint/Claim Surfaces in BridgeContract.Redeem & SwapContract.RetrieveAssets (B12 Deep Check): Grepping go-zenon-v1/internal/vm/contracts/ revealed that BridgeContract.Redeem (methods_admin.go:530, minting bridged ZTS under a secp256k1 ECDSA TSS key) and SwapContract.RetrieveAssets (swap.go, claiming 2021 genesis swaps under secp256k1) would allow unbounded post-CRQC token minting/draining if left active—explicitly halted at Spork #14 in PoKoS & Sunset §4.
  3. 90B vs. 115B PoP Header Comment Mismatch (M06 Deep Check): In v2, popPreimage summed to 115 B at the bottom comment while its top label read 90 bytes—replaced in v3 with the exact 179-byte zenon-auth-pop:v3 preimage binding GenesisMomentumHash[32] and prevActivePubKeyHash[32].

2. Blocking Findings (B01 – B12): Independent Verification & v3 Disposition​

Finding IDIndependent Verification & Technical VerdictTarget VersionExact Normative ZNN-SPEC-PHASE1-v3 ChangeGate IDCurrent State
DEEZ-B01ACCEPTED + SELF-CAUGHT API/FIPS FIX: v2 already updated Go 1.26 -> Go 1.27+, and our go1.27.4 check caught mldsa.NewPublicKey(mldsa.MLDSA44(), ...) + GOFIPS140=v1.0.0 disablement.v3Replaced wrapper code with live-compiled go1.27.4 crypto/mldsa functions + AssertMLDSAReady() startup KAT (621b16f8..., Blueprint §2).G1, G9SPEC-RESOLVED
DEEZ-B02ACCEPTED (Verified in momentum.go:415): go-zenon-v1 evaluates spork masks at blk.MomentumAcknowledged.Height, creating a 1-hour (W_ack) post-sunset Ed25519 bypass if Spork #14 used H_ack.v3Enforced SporkBitLegacyCryptoSunset (Spork #14) and ActiveKey strictly at InclusionMomentumHeight (H_inc) during live admission while preserving era-accurate historical replay for H_inc < H_sunset (AccountBlocks §2).ZP-Q23SPEC-RESOLVED
DEEZ-B03ACCEPTED: Dual-ledger RotateKey Send -> Receive needed explicit expectedRotationNonce ABI parameter, stale-receive no-op rule, and producer() (account_block.go:1075) cached-PK branch.v3Added expectedRotationNonce to RotateKey, deterministic ErrAuthStaleGeneration rejection on competing Sends, Phase 1A vs 1B window note, and 3-path producer() rule (AuthRegistry §3, AccountBlocks §3.3).G7, ZP-Q16SPEC-RESOLVED
DEEZ-B04ALREADY RESOLVED IN v2 (Stale Target): revokeLegacy: bool only existed in retired zenon-post-quantum.v2revokeLegacy deleted in v2; UpgradeHybridToPureMLDSA44 handles 0x81 -> 0x01 cleanly (AuthRegistry §3.1).ZP-Q16SPEC-RESOLVED
DEEZ-B05ACCEPTED WITH TECHNICAL CORRECTION: Reviewer cites ~2^76 ideal Grover on 152b addresses while omitting Zalka's MAXDEPTH = 2^64 penalty (2^152/2^64 = 2^88 parallel runs, > 2^103 gates [E6]). Multi-target Grover & cold-vault pre-binding kernel is valid.v3Documented both ideal (2^76 single / 2^((152-u)/2) multi-target) and MAXDEPTH = 2^64 (> 2^103 gates) bounds, and added feeless AuthRegistry.PrecommitKey (256-bit pre-spend binding for Height == 0 vaults, AuthRegistry §2–3).ZP-Q16SPEC-RESOLVED
DEEZ-B06ACCEPTED (High-Value Crypto Catch): Checking only 19B targetAddress in R_PoKoS left Height >= 1 accounts at 2^76 ideal seed-collision search despite 32B pubKey_A already being public on-chain!v3Persisted AccountStore[0x0a] = legacyEd25519PK[32] and bound all 32 B of pubKey_A as a mandatory public input in R_PoKoS when Height >= 1 (~2^126 ideal Grover); documented Height == 0 honestly at 152b (PoKoS §1–3).ZP-Q24SPEC-RESOLVED
DEEZ-B07ACCEPTED WITH TECHNICAL CORRECTION: 16 KiB Data cap was already replaced by <= 128 KiB ProofWitness in v2, and Python multiproof sizing shows compressed WHIR-SHA3-v1 is 41–60 KiB (Anza's 400 KB prototype omitted outer recursion). Qualification target caveat accepted.v3Added analytical 41–60 KiB multiproof derivation vs Anza prototype and labeled ~45k rows / ~0.75 s prove as projected targets gated on ZP-Q20 (PQ Sigs & STARKs §2).G10, ZP-Q20SPEC-RESOLVED
DEEZ-B08ALREADY RESOLVED IN v2 (+ Zero-Balance Note): Sponsor 0x02 submission + popPreimage binding already existed in v2.v3Added explicit note that post-rescue 0-balance 0x00 accounts claim pending UserReceives feelessly via Equi-X PoW (PoKoS §3).ZP-Q24SPEC-RESOLVED
DEEZ-B09ALREADY RESOLVED IN v2 (Stale Target): 3-cohort exposure table (Height == 0 vs Height >= 1) was added in v2 (H06).v2/v3Preserved and cross-linked with B03 in-flight window (PoKoS §2).ZP-Q16SPEC-RESOLVED
DEEZ-B10ALREADY RESOLVED IN v2 (Stale Target): 21/30 count example was only in standalone zenon-post-quantum; v2 uses M_shares = 4,096 (Q_vote = 2,731).v2Congruence-exact M = 4,096 stake-quantized quorums (System Model §1).G5SPEC-RESOLVED
DEEZ-B11ACCEPTED: Post-CRQC attackers could forge 2021–Phase 1A Ed25519 Pillar histories for genesis-syncing nodes without a pre-CRQC hash anchor.v3Added SunsetAnchorCheckpoint at Spork #14 pinned in params.go and sealed in Bitcoin SHA-256d 99B checkpoints, freezing 100% of classical history via SHA3-256 (Quantum Threat §2, Proof-First §2).ZP-Q25SPEC-RESOLVED
DEEZ-B12ACCEPTED + SELF-CAUGHT Bridge & Swap AUDIT: Source grep found BridgeContract.Redeem (secp256k1 ECDSA mint) and SwapContract.RetrieveAssets (secp256k1) alongside PtlcContract {0..2} escrows.v3Specified complete 6-part Phase 1E sunset halting Bridge ECDSA, Swap, Pillar.RegisterLegacy, plus two-step PtlcContract {0..2} drain preserving post-expiry Reclaim (PoKoS & Sunset §4).ZP-Q26SPEC-RESOLVED

3. Major & Editorial Findings (M01 – M12, N01 – N02): Independent Verification & v3 Disposition​

Finding IDIndependent Verification & Technical VerdictTarget VersionExact Normative ZNN-SPEC-PHASE1-v3 ChangeGate IDCurrent State
DEEZ-M01ACCEPTED (Verified in account_block.go:85): PreverifiedBlock currently snapshots inline 32B PublicKey and must bind resolved state context when len(PublicKey) == 0.v3Defined 8-tuple PreverifyAuthTuple (GenesisHash, ChainId, BlockHash, ResolvedAlgID, ResolvedPubKeyHash, RotationNonce, SunsetActive, WitnessDigest, AccountBlocks §3.2).G7SPEC-RESOLVED
DEEZ-M02ACCEPTED (Pre-Verify Bounds; Pruning Safe Behind B11): 17 plasma/B is a policy weight; malformed witnesses need Stage-1 pre-alloc rejection.v3Added Stage-1 per-algID exact length checks + InvalidWitnessPenalty peer scoring prior to crypto verify (AccountBlocks §3.1).G8SPEC-RESOLVED
DEEZ-M03ALREADY RESOLVED IN v2 (Stale Target): v2 replaced 4 QCs/s / 8c prose with 1 Hz MomentumPQQC (0.65 Mbps) and 0.59 ms ideal / 0.9–1.4 ms realistic 4c Pi 5 verify.v2Retained v2 1 Hz /znn/dag/qc/v2 model (Projection §3.2).G8, ZP-Q14SPEC-RESOLVED
DEEZ-M04ALREADY RESOLVED IN v2 (M12): Marked FN-DSA-512 (0x02) as provisional draft-FIPS-206 (fn-dsa v0.3 KATs) with immutable algID versioning (0x05 on post-launch change).v2/v3Reinforced provisional label in PQ Sigs & STARKs §1.G9SPEC-RESOLVED
DEEZ-M05ACCEPTED WITH TECHNICAL CORRECTION: Direct read of go-zenon/wallet/keystore.go:29 proves KeyFiles decrypt to standard BIP-39 entropy, and R_PoKoS operates on any 32B RFC 8032 seed (12/24-word, passphrased, KeyFile, or raw seed). Computational PRF & fresh-seed points accepted.v3Generalized wallet prose to all RFC 8032 32B seeds, noted computational HMAC-SHA512 PRF isolation, and mandated an independent fresh 256-bit seed option on rotation (AuthRegistry §4).ZP-Q24SPEC-RESOLVED
DEEZ-M06ACCEPTED (+ Self-Caught 90B/115B Label Fix): Bound GenesisMomentumHash[32] and prevActivePubKeyHash[32] inside popPreimage.v3Upgraded to exact 179-byte zenon-auth-pop:v3 preimage (17+8+32+1+20+20+8+8+32+1+32 = 179 B, AuthRegistry §3.2).G1, ZP-Q16SPEC-RESOLVED
DEEZ-M07ACCEPTED (Verified in plasma.go:48-55): go-zenon-v1 uses 5-bit 0x1f (SporkBitDynamicPlasma = 1 << 3), and WitnessPlasma monotonicity holds per fixed (algID, hasProofWitness) for W >= 96.v3Aligned 0x1f -> uint64 SporkMask bit table verbatim with plasma.go:48 and scoped Lean law per_suite_witness_plasma_monotonicity (Dynamic Plasma §1–2).ZP-Q17SPEC-RESOLVED
DEEZ-M08ACCEPTED: Separated crypto/tls X25519MLKEM768 confidentiality from custom libp2p PQ host-key auth (KeyType_MLDSA44).v3Specified /znn/tls-pq/1.0.0 binding TLS 1.3 exporter to ML-DSA-44 host keys, libp2p-noise sunset at Spork #14, and 0 consensus trust in peer.ID (Sentinels §2).G9SPEC-RESOLVED
DEEZ-M09ACCEPTED (Verified in params.go:274): SporkEnforcementDelay = 6 (60s) is insufficient for consensus hard forks.v3Classified Sporks #9..#14 as hard forks requiring >= 85% active-stake MaxProtocolVersion readiness signaling across 2 epochs + 24h enforcement delay (Master Roadmap §2).ZP-Q23SPEC-RESOLVED
DEEZ-M10ALREADY RESOLVED IN v2 (+ 256b HTLC CSPRNG Rule): SHA3-256 2^128 preimage vs ~2^85.3 BHT bounds were added in v2 (H05).v3Added mandatory 256-bit CSPRNG secret rule for HTLC preimages r (Edge Channels §2.2).ZP-Q21SPEC-RESOLVED
DEEZ-M11ACCEPTED: Unmeasured PoKoS / Pi 5 latency targets must not be stated as completed benchmarks.v3Explicitly labeled as projected engineering targets gated on physical G8 and ZP-Q20 runs (PQ Sigs & STARKs §2).G8, ZP-Q20SPEC-RESOLVED
DEEZ-M12ACCEPTED WITH TECHNICAL CORRECTION: #13/#14 numbering was already fixed in v1/v2, and grepping go-zenon-v1, go-zenon, and znn_sdk_dart proved 0 VM paths call IsUserAddress (0x00). Explicit class allowlist adopted.v3Enforced fail-closed {0x00, 0x02} user sender class allowlist (rejecting 0x03..0xff) and clarified Version = 2 hash domain separation (AuthRegistry §1).G1SPEC-RESOLVED
DEEZ-N01ACCEPTED: 1313/3734 = 35.16% and 898/1565 = 57.38% are witness reductions (32.50% and 48.00% of full 306B-header block).v3Reported both witness % and full-block % side-by-side and distinguished First v2 Reveal from Height = 1 (PQ Sigs & STARKs §1).G1SPEC-RESOLVED
DEEZ-N02ACCEPTED (Verified in Python & go1.27.4): 0x02 encodes in Bech32 as z1q{2,f,g,t}..., NOT z1z/z1y.v3Updated prefix table to z1q{2,f,g,t}... and published live-compiled go1.27.4 ML-DSA-44 golden vector z1qgyf208a5mven54xccm2fg93e7cu0l022alugr (AuthRegistry §1–2).G1SPEC-RESOLVED

4. Reproducible ZNN-SPEC-PHASE1-v3 Verification Script (zp1_v3_checks.py)​

#!/usr/bin/env python3
"""Reproducible verification of ZNN-SPEC-PHASE1-v3 (Round-3 DEEZ-HR-001 additions)."""
import hashlib

CHARSET = "qpzry9x8gf2tvdw0s3jn54khce6mua7l"

def convertbits(data, frombits=8, tobits=5, pad=True):
acc, bits, ret, maxv = 0, 0, [], (1 << tobits) - 1
for v in data:
acc = (acc << frombits) | v
bits += frombits
while bits >= tobits:
bits -= tobits
ret.append((acc >> bits) & maxv)
if pad and bits:
ret.append((acc << (tobits - bits)) & maxv)
return ret

# 1. DEEZ-N02: Exact Bech32 prefix sets for class bytes 0x00, 0x01, 0x02
prefs_00 = sorted({"".join(CHARSET[w] for w in convertbits([0x00, b]+[0]*18)[:2]) for b in range(256)})
prefs_01 = sorted({"".join(CHARSET[w] for w in convertbits([0x01, b]+[0]*18)[:2]) for b in range(256)})
prefs_02 = sorted({"".join(CHARSET[w] for w in convertbits([0x02, b]+[0]*18)[:2]) for b in range(256)})
assert prefs_00 == ["qp", "qq", "qr", "qz"]
assert prefs_01 == ["q8", "q9", "qx", "qy"]
assert prefs_02 == ["q2", "qf", "qg", "qt"]
assert set(prefs_00).isdisjoint(prefs_01) and set(prefs_02).isdisjoint(prefs_00 + prefs_01)

# 2. DEEZ-N02: Verify golden Go 1.27.4 ML-DSA-44 0x02 address encoding
addr_hex = bytes.fromhex("0208953cfda6d999d2a6c636a4a0b1cfb1c7fdea")
words = convertbits(addr_hex)
assert "".join(CHARSET[w] for w in words[:4]) == "qgyf"

# 3. DEEZ-M06: Exact 179-byte zenon-auth-pop:v3 preimage length
pop_len = 17 + 8 + 32 + 1 + 20 + 20 + 8 + 8 + 32 + 1 + 32
assert pop_len == 179

# 4. DEEZ-N01: Witness vs total-block PK caching percentages
assert round(1313 / 3734 * 100, 2) == 35.16 and round(1313 / (306 + 3734) * 100, 2) == 32.50
assert round(898 / 1565 * 100, 2) == 57.38 and round(898 / (306 + 1565) * 100, 2) == 48.00

# 5. DEEZ-B05: Zalka MAXDEPTH=2^64 parallel Grover bound on 152-bit address
assert 152 - 64 == 88 # 2^88 parallel depth-2^64 quantum runs (>2^103 gates)
print("ALL ZNN-SPEC-PHASE1-v3 ROUND-3 INVARIANTS VERIFIED OK!")