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-001auditededgepillar/zenon-post-quantum@e5930af(a fork of the retired 9-page standalone PQ draft before unification intozenon-phase-1and beforeZNN-SPEC-PHASE1-v2) alongside0x3639/go-zenon-v1@124b4cedandzenon-network/go-zenon@e8986a63. Verification Methodology: Rather than blindly accepting reviewer claims, every single one of the26findings (B01–B12,M01–M12,N01–N02) was independently checked against localgo-zenon-v1,go-zenon,znn_sdk_dart,go1.27.4stdlib (crypto/mldsa), and executable Python/Go math, yielding:
12Accepted Residual Fixes +3Self-Caught Source Fixes integrated intoZNN-SPEC-PHASE1-v3;4Accepted-With-Technical-Correction Dispositions (where the valid kernel was adopted while correcting reviewer overstatements onMAXDEPTHGrover,go-zenonKeyFiles,IsUserAddress, and400 KBAnza proofs);10Stale-Target Dispositions already resolved inZNN-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:
Go 1.27.4crypto/mldsaExact Constructor Signatures &GOFIPS140=v1.0.0Runtime Trap (B01Deep Check): Runninggo doc -all crypto/mldsaongo1.27.4revealed (a) the exact stdlib constructors aremldsa.NewPrivateKey(mldsa.MLDSA44(), seed32),mldsa.NewPublicKey(mldsa.MLDSA44(), rawPub),sk.SignDeterministic(msg, &mldsa.Options{Context: ctx}), andmldsa.Verify(pk, msg, sig, &mldsa.Options{Context: ctx})(replacingv2'sNewPublicKey44shorthand), and (b) Go 1.27 disablescrypto/mldsaat runtime ifGOFIPS140=v1.0.0is active—fixed inv3viaAssertMLDSAReady()(621b16f8...deterministic startup KAT in Go 1.27+ Blueprint §2).- Live
secp256k1Mint/Claim Surfaces inBridgeContract.Redeem&SwapContract.RetrieveAssets(B12Deep Check): Greppinggo-zenon-v1/internal/vm/contracts/revealed thatBridgeContract.Redeem(methods_admin.go:530, minting bridged ZTS under asecp256k1ECDSA TSS key) andSwapContract.RetrieveAssets(swap.go, claiming 2021 genesis swaps undersecp256k1) would allow unbounded post-CRQC token minting/draining if left active—explicitly halted atSpork #14in PoKoS & Sunset §4. 90Bvs.115BPoP Header Comment Mismatch (M06Deep Check): Inv2,popPreimagesummed to115 Bat the bottom comment while its top label read90 bytes—replaced inv3with the exact179-bytezenon-auth-pop:v3preimage bindingGenesisMomentumHash[32]andprevActivePubKeyHash[32].
2. Blocking Findings (B01 – B12): Independent Verification & v3 Disposition
| Finding ID | Independent Verification & Technical Verdict | Target Version | Exact Normative ZNN-SPEC-PHASE1-v3 Change | Gate ID | Current State |
|---|---|---|---|---|---|
DEEZ-B01 | ACCEPTED + 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. | v3 | Replaced wrapper code with live-compiled go1.27.4 crypto/mldsa functions + AssertMLDSAReady() startup KAT (621b16f8..., Blueprint §2). | G1, G9 | SPEC-RESOLVED |
DEEZ-B02 | ACCEPTED (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. | v3 | Enforced 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-Q23 | SPEC-RESOLVED |
DEEZ-B03 | ACCEPTED: Dual-ledger RotateKey Send -> Receive needed explicit expectedRotationNonce ABI parameter, stale-receive no-op rule, and producer() (account_block.go:1075) cached-PK branch. | v3 | Added 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-Q16 | SPEC-RESOLVED |
DEEZ-B04 | ALREADY RESOLVED IN v2 (Stale Target): revokeLegacy: bool only existed in retired zenon-post-quantum. | v2 | revokeLegacy deleted in v2; UpgradeHybridToPureMLDSA44 handles 0x81 -> 0x01 cleanly (AuthRegistry §3.1). | ZP-Q16 | SPEC-RESOLVED |
DEEZ-B05 | ACCEPTED 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. | v3 | Documented 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-Q16 | SPEC-RESOLVED |
DEEZ-B06 | ACCEPTED (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! | v3 | Persisted 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-Q24 | SPEC-RESOLVED |
DEEZ-B07 | ACCEPTED 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. | v3 | Added 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-Q20 | SPEC-RESOLVED |
DEEZ-B08 | ALREADY RESOLVED IN v2 (+ Zero-Balance Note): Sponsor 0x02 submission + popPreimage binding already existed in v2. | v3 | Added explicit note that post-rescue 0-balance 0x00 accounts claim pending UserReceives feelessly via Equi-X PoW (PoKoS §3). | ZP-Q24 | SPEC-RESOLVED |
DEEZ-B09 | ALREADY RESOLVED IN v2 (Stale Target): 3-cohort exposure table (Height == 0 vs Height >= 1) was added in v2 (H06). | v2/v3 | Preserved and cross-linked with B03 in-flight window (PoKoS §2). | ZP-Q16 | SPEC-RESOLVED |
DEEZ-B10 | ALREADY 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). | v2 | Congruence-exact M = 4,096 stake-quantized quorums (System Model §1). | G5 | SPEC-RESOLVED |
DEEZ-B11 | ACCEPTED: Post-CRQC attackers could forge 2021–Phase 1A Ed25519 Pillar histories for genesis-syncing nodes without a pre-CRQC hash anchor. | v3 | Added 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-Q25 | SPEC-RESOLVED |
DEEZ-B12 | ACCEPTED + SELF-CAUGHT Bridge & Swap AUDIT: Source grep found BridgeContract.Redeem (secp256k1 ECDSA mint) and SwapContract.RetrieveAssets (secp256k1) alongside PtlcContract {0..2} escrows. | v3 | Specified 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-Q26 | SPEC-RESOLVED |
3. Major & Editorial Findings (M01 – M12, N01 – N02): Independent Verification & v3 Disposition
| Finding ID | Independent Verification & Technical Verdict | Target Version | Exact Normative ZNN-SPEC-PHASE1-v3 Change | Gate ID | Current State |
|---|---|---|---|---|---|
DEEZ-M01 | ACCEPTED (Verified in account_block.go:85): PreverifiedBlock currently snapshots inline 32B PublicKey and must bind resolved state context when len(PublicKey) == 0. | v3 | Defined 8-tuple PreverifyAuthTuple (GenesisHash, ChainId, BlockHash, ResolvedAlgID, ResolvedPubKeyHash, RotationNonce, SunsetActive, WitnessDigest, AccountBlocks §3.2). | G7 | SPEC-RESOLVED |
DEEZ-M02 | ACCEPTED (Pre-Verify Bounds; Pruning Safe Behind B11): 17 plasma/B is a policy weight; malformed witnesses need Stage-1 pre-alloc rejection. | v3 | Added Stage-1 per-algID exact length checks + InvalidWitnessPenalty peer scoring prior to crypto verify (AccountBlocks §3.1). | G8 | SPEC-RESOLVED |
DEEZ-M03 | ALREADY 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. | v2 | Retained v2 1 Hz /znn/dag/qc/v2 model (Projection §3.2). | G8, ZP-Q14 | SPEC-RESOLVED |
DEEZ-M04 | ALREADY 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/v3 | Reinforced provisional label in PQ Sigs & STARKs §1. | G9 | SPEC-RESOLVED |
DEEZ-M05 | ACCEPTED 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. | v3 | Generalized 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-Q24 | SPEC-RESOLVED |
DEEZ-M06 | ACCEPTED (+ Self-Caught 90B/115B Label Fix): Bound GenesisMomentumHash[32] and prevActivePubKeyHash[32] inside popPreimage. | v3 | Upgraded 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-Q16 | SPEC-RESOLVED |
DEEZ-M07 | ACCEPTED (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. | v3 | Aligned 0x1f -> uint64 SporkMask bit table verbatim with plasma.go:48 and scoped Lean law per_suite_witness_plasma_monotonicity (Dynamic Plasma §1–2). | ZP-Q17 | SPEC-RESOLVED |
DEEZ-M08 | ACCEPTED: Separated crypto/tls X25519MLKEM768 confidentiality from custom libp2p PQ host-key auth (KeyType_MLDSA44). | v3 | Specified /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). | G9 | SPEC-RESOLVED |
DEEZ-M09 | ACCEPTED (Verified in params.go:274): SporkEnforcementDelay = 6 (60s) is insufficient for consensus hard forks. | v3 | Classified Sporks #9..#14 as hard forks requiring >= 85% active-stake MaxProtocolVersion readiness signaling across 2 epochs + 24h enforcement delay (Master Roadmap §2). | ZP-Q23 | SPEC-RESOLVED |
DEEZ-M10 | ALREADY RESOLVED IN v2 (+ 256b HTLC CSPRNG Rule): SHA3-256 2^128 preimage vs ~2^85.3 BHT bounds were added in v2 (H05). | v3 | Added mandatory 256-bit CSPRNG secret rule for HTLC preimages r (Edge Channels §2.2). | ZP-Q21 | SPEC-RESOLVED |
DEEZ-M11 | ACCEPTED: Unmeasured PoKoS / Pi 5 latency targets must not be stated as completed benchmarks. | v3 | Explicitly labeled as projected engineering targets gated on physical G8 and ZP-Q20 runs (PQ Sigs & STARKs §2). | G8, ZP-Q20 | SPEC-RESOLVED |
DEEZ-M12 | ACCEPTED 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. | v3 | Enforced fail-closed {0x00, 0x02} user sender class allowlist (rejecting 0x03..0xff) and clarified Version = 2 hash domain separation (AuthRegistry §1). | G1 | SPEC-RESOLVED |
DEEZ-N01 | ACCEPTED: 1313/3734 = 35.16% and 898/1565 = 57.38% are witness reductions (32.50% and 48.00% of full 306B-header block). | v3 | Reported both witness % and full-block % side-by-side and distinguished First v2 Reveal from Height = 1 (PQ Sigs & STARKs §1). | G1 | SPEC-RESOLVED |
DEEZ-N02 | ACCEPTED (Verified in Python & go1.27.4): 0x02 encodes in Bech32 as z1q{2,f,g,t}..., NOT z1z/z1y. | v3 | Updated prefix table to z1q{2,f,g,t}... and published live-compiled go1.27.4 ML-DSA-44 golden vector z1qgyf208a5mven54xccm2fg93e7cu0l022alugr (AuthRegistry §1–2). | G1 | SPEC-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!")