Skip to main content

System Model, Quantized M=4,096 Quorums, Pure-SHA3-256 HashRand-PQ Coin & PQ Consensus Crypto

60-Second TL;DR (ZNN-SPEC-PHASE1-v4): Reconciling ZDC-ZP1-HR-001 (B01–B04, H05, M04) and the Round-4 Cryptographic Audit (R4-05), Zenon Phase 1 v4 locks a mathematically sound, zero-lattice-coin post-quantum asynchronous system model:

  1. Congruence-Exact Quantized Voting Shares (M_shares = 4,096 = 3 * 1,365 + 1, B04 fix): F_Q = 1,365, Q_vote = 2,731, restoring 2 * Q_vote - M_shares = 1,366 > F_Q (<= 32.54% raw-stake safety margin at k = 33) with 0 zero-share active seats!
  2. Pure-SHA3-256 HashRand-PQ Asynchronous Common Coin (R4-05 fix, replacing v2/v3 Module-SIS RLC): Eliminates the characteristic-mismatch (char 2 vs mod 8,380,417), 1,280 B norm-overflow, 1,981 Mbps full-matrix RBC, and 0x04 lattice-dependency defects of v2/v3 by pairing a congruence-exact M_coin = 256 = 3 * 85 + 1 (F_coin = 85, Q_coin = 171, T_coin = 86, c_i <= 13) GF(2^256) Shamir coin with column-major SHA3-256 AVID-FP manifest dispersal (2.03 MiB dealer matrix, < 8 MB RSS, 0.69–1.34 Mbps background TX, 1.49–2.54 Mbps salt-free 1.0 Hz reveal, zero lattice assumptions!).
  3. Dual-Tree XMSS-SHAKE_22_256 (0x04) Emergency Fallback (M04 + R4-05 fix): Disjoint 2^22-leaf DAG and QC keys (24.2 days capacity each), fdatasync WAL index lock, optional HQC-192 code-based KEM combiner for zero-lattice share secrecy, and 2 Hz (5.57 Mbps base / 6.17–6.59 Mbps w/ coin) degraded pace.

1. Epoch Committee, M_shares = 4,096 Voting Quorums & M_coin = 256 Coin Shares (B04 + R4-05 Fix)​

1.1 Deterministic Epoch Committee (P_E) & Minimum Share Guard​

Time is partitioned into sequential epochs E in {0, 1, 2, ...} (EpochDuration = 86,400 1.0 s Momentum v4 blocks). At the certified EpochTerminalDescriptor(E - 1), every node deterministically derives CommitteeManifest(E):

  • Minimum Active Eligibility (0 Zero-Share Voting Seats): Only registered Pillars with weight w_i >= ceil(W_total / 4,096) (~0.0244% of active stake, capped at N <= 100 active seats by stake rank) enter P_E = {P_0, ..., P_{N-1}}, guaranteeing s_i >= 1 for every member of P_E.
  • Congruence-Exact Quantized Voting Vector (M_shares = 4,096): Because 4,096 = 2^12 AND 4,096 = 3 * 1,365 + 1 (4,096 mod 3 == 1), deterministic Hamilton largest-remainder allocation produces integer voting shares s_i >= 1 (sum_{i=0}^{N-1} s_i = 4,096) satisfying the exact BFT quorum intersection identity:
    M_shares = 4,096
    F_Q = (M_shares - 1) / 3 = 1,365 // Max quantized Byzantine voting shares (< 1/3)
    Q_vote = M_shares - F_Q = 2,731 // Supermajority consensus quorum (>= 2*F_Q + 1)

    Quorum Intersection Identity:
    2 * Q_vote - M_shares = 2 * 2,731 - 4,096 = 1,366 == F_Q + 1 > F_Q!
  • Voting Raw-Stake Rounding Margin (B04): Largest-remainder rounding across k Byzantine Pillars increases their quantized sum above raw stake by strictly less than k shares (sum_{i in Byz} s_i < (W_byz / W_E) * 4,096 + k). Consensus safety holds unconditionally whenever sum_{i in Byz} s_i <= 1,365, guaranteed for all raw Byzantine stake fractions W_byz / W_E <= (1,365 - k + 1) / 4,096 (<= 32.54% raw stake at k = 33).
  • Congruence-Exact Coin Share Vector (M_coin = 256, R4-05 Fix): For the pure-SHA3-256 HashRand-PQ common coin (§3), CommitteeManifest(E) derives a compact quantized coin vector c_0, ..., c_{N-1} via capped Hamilton largest-remainder allocation on M_coin = 256 = 3 * 85 + 1 with per-seat whale cap c_i <= 13 (5.08%) (redistributing any excess above 13 pro-rata across uncapped active seats; dust seats with < 0.2% stake may have c_i = 0 while keeping s_i >= 1 voting weight):
    M_coin = 256
    F_coin = (M_coin - 1) / 3 = 85 // Max quantized Byzantine coin shares (< 1/3)
    Q_coin = M_coin - F_coin = 171 // Supermajority coin availability quorum
    T_coin = F_coin + 1 = 86 // Shamir reconstruction threshold (deg <= 85)

    Coin Intersection Identity:
    2 * Q_coin - M_coin = 2 * 171 - 256 = 86 == F_coin + 1 == T_coin!
    By the Hamilton Remainder Sum Lemma (sum_{i in S} (c_i - 256 * w_i) <= k * (1 - k/N)), sum_{i in Byz} c_i <= 85 holds up to ~30.1–33.2% unground Byzantine stake (and unconditionally up to 24.61% at N = 100, 26.95% at N = 67, 33.20% at N = 30 even under adversarial sub-token remainder grinding, while safety Q_vote = 2,731 / 4,096 always holds up to 32.54%).
  • Subject-Binding Rule (HR-02): Each Pillar P_i's shares (s_i, c_i) MUST be counted at most once per (subject, context), never unioning support across conflicting equivocations.

1.2 Mandatory Asynchronous Liveness​

  • Safety: Holds unconditionally under full asynchrony (Delta unbounded), independent of local wall clocks.
  • Liveness:
    • Healthy Interval: Commits in 3 Delta (~600 ms at 5 Hz default pace, ~350 ms at 10 Hz) on Profile B (once ZP-Q11 passes) or 1.0 s (5 rounds at 5 Hz) on Profile C-AS.
    • Adversarial Asynchronous Regime (Delta unbounded, targeted DDoS / BGP delay): Terminates with probability 1 in O(1) expected non-overlapping 5-round waves (Mahi-Mahi Profile C-AS shipping default with stride = 5, matching 1.0 s Momentum v4 cadence 1:1 — see Uncertified Meta-DAG).

2. Normative Post-Quantum Consensus Cryptographic Suite (R4-05, M04, M12)​

Consensus RoleStandard & Pinned ImplementationWire FootprintWhy Selected & v4 Hardening
DAG Vertex & MomentumQC Auth (0x02)FN-DSA-512 (draft-FIPS-206, pure-Go fn-dsa v0.3 KAT vectors R4-09)897 B PK / 666 B Sig3.6x smaller than ML-DSA-44; integer NTT (mod 12289) verify in ~35 µs; 3.825 Mbps direct mesh at 5 Hz (M01).
Zero-Lattice Emergency Consensus (0x04)Dual-Key XMSS-SHAKE_22_256 (NIST SP 800-208, h = 22 -> 4,194,304 leaves)64 B Root × 2 / 2,884 B SigSeparate xmss_dag_root & xmss_qc_root (24.2 days each at 2 Hz = 5.57 Mbps base), fdatasync WAL index lock (M04); 0 lattice assumptions.
PQ Asynchronous Common Coin (R4-05)Pure-SHA3-256 HashRand-PQ (GF(2^256) Shamir + AVID-FP)1,638–2,785 B avg (8.3–14.1 KiB 5%-cap)128-bit Grover secret (GF(2^256)), 2.03 MiB dealer matrix (< 8 MB RSS), 0.69–1.34 Mbps AVID-FP dealing, 0 lattice assumptions!
Validator & Sentinel P2P TransportHybrid X25519MLKEM768 + ML-DSA-44 peer.ID (Go 1.27+ stdlib crypto/tls + crypto/mldsa)~1.1 KiB per handshakeCloses HNDL and secp256k1 MITM peer spoofing; optional HQC-192 code-based KEM combiner for 0x04 emergency mode.

3. Pure-SHA3-256 HashRand-PQ Common Coin (R4-05 Fix — Replacing Module-SIS RLC)​

Our Round-4 cryptographic audit (R4-05) demonstrated four fatal flaws in v2/v3's Module-SIS RLC coin: (1) characteristic mismatch between GF(2^256) (char 2) Shamir interpolation and FIPS-204 R_q (mod 8,380,417) additive homomorphism, (2) 1,280 B norm overflow (1 packed R_q element alone is 736 B), (3) 1,981 Mbps full-matrix RBC echo amplification across 100 dealers, and (4) lattice dependence inside 0x04 XMSS "zero-lattice" emergency mode. ZNN-SPEC-PHASE1-v4 replaces Module-SIS RLC with pure-SHA3-256 HashRand-PQ (adapted from Das-Xiang-Kokoris-Kogias-Ren CCS 2024):

3.1 Secret Field, 4-Row Degree Check & 2.03 MiB Dealer Matrix (R4-05)​

  • Field & Threshold: GF(2^256) (X^256 + X^10 + X^5 + X^2 + 1, 32 bytes per evaluation -> 128-bit Grover secret strength), polynomial degree <= T_coin - 1 = 85 across M_coin = 256 evaluation points.
  • Sub-Epoch Bank Size & Blinding Rows: Each bank covers B_batch = 256 non-overlapping 5-round waves (1,280 DAG rounds = 256.0 s at 5 Hz) plus 4 independent random degree-<= 85 blinding polynomials b_0..b_3 (B_polys = 260 rows total).
  • Peak Dealer Memory (16x Smaller Than v3): 260 rows × 256 coin shares × 32 B = 2,129,920 B (2.03 MiB raw matrix per dealer, computed in < 8 MB peak RSS on an 8 GB Raspberry Pi 5!).

3.2 Column-Major AVID-FP Dispersal & 2^-512 QROM Degree Verification (0 Circularity)​

Validators maintain a rolling 2-bank ring buffer (Active Bank b, Pre-Staged Bank b+1) on /znn/dag/avss/v4:

  1. Column-Major LeafHashManifest(d, b) (812.5 KiB): Candidate dealer P_d (from the canonical stake-rank prefix D_cand summing to >= Q_vote = 2,731 voting shares, 40..67 Pillars) computes for each row r in 0..259 and Pillar j in 0..N-1:
    BundleHash[r][j] = FIPS202_SHA3_256("ZNN/hr-bundle/v4" || be_u32(b) || be_u16(d) || be_u16(r) || be_u16(j) || shares_{d, r, Owned(j)}[32 * c_j])
    ColHash[j] = FIPS202_SHA3_256("ZNN/hr-col/v4" || be_u32(b) || be_u16(d) || be_u16(j) || BundleHash[0..259][j])
    ManifestRoot = SHA3MerkleRoot(ColHash[0 .. N-1])
    (Notice: Because each GF(2^256) polynomial of degree 85 >= c_j (85 >= 13) evaluates independently and uniformly on Owned(j) conditioned on up to 85 - c_j adversarial shares when P_d is honest, even a 1-share bundle c_j = 1 already possesses 256 bits of conditional Shannon entropy (128 Grover bits) — requiring 0 random salt bytes!)
  2. Fiat-Shamir GF(2^256) Linear-Combination Degree Check (10.75 KiB, 2^-512 QROM): Using SHAKE256("ZNN/hr-deg/v4" || ManifestRoot) to derive 4 × 256 scalars alpha_{k, w} in GF(2^256), P_d publishes the 4 degree-<= 85 polynomials L_k(X) = b_k(X) + sum_{w=0}^{255} alpha_{k,w} * f_{d,w}(X) (4 × 86 × 32 B = 11,008 B). Soundness error against a non-degree-85 row is (2^-256)^4 = 2^-1024 classical / 2^-512 QROM with zero leakage of f_{d, 0..255}(0)!
  3. 1-Hop Share Delivery + (100, 34) Reed-Solomon AVID-FP Shard (0.69–1.34 Mbps Total TX):
    • P_d encodes (LeafHashManifest[832,000 B] || L_0..L_3[11,008 B]) (843,008 B) into 100 GF(2^16) Reed-Solomon shards (24,795 B each) committed under SHA3-256 CodedRoot, and unicasts to each P_j: (a) Enc(pk_j, shares_{d, 0..259, Owned(j)}) (ML-KEM-768 + AES-256-GCM, plus optional HQC-192 hybrid KEM under 0x04), (b) 224 B Merkle branch for ColHash[j] in ManifestRoot, and (c) Shard_j + 224 B branch in CodedRoot (~4.52 MiB total TX once per 256 s = 0.17 Mbps).
    • P_j decrypts its shares, checks ColHash[j] against ManifestRoot, checks all 4 L_k degree equations on Owned(j), checks Shard_j against CodedRoot, and returns a 666 B FN-DSA-512 receipt DealerAck(b, d, ManifestRoot, CodedRoot).
    • Once P_d aggregates DealerAcks spanning both >= Q_vote = 2,731 voting shares and >= Q_coin = 171 coin shares into DealerCert, at least 171 - 85 = 86 == T_coin honest coin shares hold verified evaluations and >= 34 honest Pillars hold verified Shard_js!
  4. Canonical Re-Encoding Agreement on D_agreed(b) (AVID-FP Uniqueness): Validators pull 34 Shard_js (825 KiB), interpolate (LeafHashManifest, L_0..L_3), re-encode all 100 Reed-Solomon shards deterministically, and verify CodedRoot(RS_Encode(M)) == Cert.CodedRoot && ManifestRoot(M) == Cert.ManifestRoot (by minimum distance 67 and SHA3-256 collision resistance, either every 34-subset of valid shards passes and yields identical M, or every 34-subset fails!). The lowest-index certified dealers summing to >= F_Q + 1 = 1,366 voting shares (K_d = 20..34 dealers -> at least 1 honest dealer guaranteed!) form D_agreed(b) (0.69–1.34 Mbps background TX / 0.73–1.23 Mbps RX!).

3.3 Salt-Free, Branch-Free Online Reveal (1.0 Hz, 1.49–2.54 Mbps Framed TX)​

On the coin-reveal round (r_4) of wave w (1.0 Hz at 5 Hz stride = 5), Pillar P_j (c_j >= 1) broadcasts (shares_{d, w, Owned(j)})_{d in D_agreed(b)}:

  • Verification (O(K_d) Single-Block SHA3-256 Lookups, 0 Merkle Siblings on Wire): Receiver hashes each 32 * c_j-byte slice once and compares directly against pre-staged LeafHashManifest(d, b)[w][j] in RAM (< 12 µs per peer!).
  • Exact Online Reveal Footprint (R4-05 Closed):
    • Average Pillar (c_j = 2.56 shares, K_d = 20..34): 1,638 – 2,785 B (1.49 – 2.54 Mbps framed TX across 99 peers at 1.0 Hz!).
    • 5%-Capped Whale (c_j = 13 shares, K_d = 20..34): 8,320 – 14,144 B (7.58 – 12.89 Mbps coin TX, well within 25 Mbps Sovereign Pi 5 TX!).
  • Unique 256-Bit Coin Reconstruction: Upon verifying >= T_coin = 86 coin shares for every d in D_agreed(b), any node interpolates each f_{d, w}(0), sums S_w = XOR_{d in D_agreed(b)} f_{d, w}(0) in GF(2^256) (0 subset grinding, 256 bits unconditional entropy from >= 1 honest dealer!), and derives:
    Coin_w = FIPS202_SHA3_256("ZNN/pq-coin/v4" || be_u64(ChainId) || be_u64(E) || be_u64(w) || S_w[32])
    Leader(w) = ShareOwner(be_u128(Coin_w[0:16]) mod 4096) // 2^-116 modulo bias (< 2^-100)

4. Joint-Epoch Freeze & Dual-Key XMSS-SHAKE_22_256 (0x04) Emergency Mode (M04 + R4-05 Fix)​

  1. Joint-Epoch Freeze (C08): If epoch boundary transition is delayed during an extended partition, P_E, s_i (4,096 voting shares), c_i (256 coin shares), and all Pillar/Stake unbonding exits remain frozen until EpochTerminalDescriptor(E) commits (HashRand-PQ banks continue replenishing seamlessly across the extension via §3.2!).
  2. True Zero-Lattice Emergency XMSS-SHAKE_22_256 (0x04, M04 + R4-05 Fix):
    • Each validator registers two independent h = 22 (4,194,304-leaf) XMSS-SHAKE_256 roots in CommitteeManifest: xmss_dag_root (indexed strictly by round mod 2^22) and xmss_qc_root (indexed strictly by height mod 2^22).
    • Before emitting any 0x04 signature (2,884 B = 4B idx + 32B r + 2,144B WOTS+ + 704B auth22), xmss_wal.go persists high_water_idx via fdatasync() so power loss can never reuse a one-time WOTS+ leaf.
    • Activating 0x04 steps DAG round cadence to 2 Hz (0.4 Hz non-overlapping stride = 5 coin reveal = 5.57 Mbps base + 0.60–1.02 Mbps coin = 6.17–6.59 Mbps framed TX, 24.2 days runtime per 2^22 tree) and enables the HQC-192 code-based KEM combiner on /znn/dag/avss/v4—making 100% of consensus auth, coin soundness, and coin secrecy completely independent of lattices!