System Model, Quantized M=4,096 Quorums, Pure-SHA3-256 HashRand-PQ Coin & PQ Consensus Crypto
60-Second TL;DR (
ZNN-SPEC-PHASE1-v4): ReconcilingZDC-ZP1-HR-001(B01–B04, H05, M04) and the Round-4 Cryptographic Audit (R4-05), Zenon Phase 1v4locks a mathematically sound, zero-lattice-coin post-quantum asynchronous system model:
- Congruence-Exact Quantized Voting Shares (
M_shares = 4,096 = 3 * 1,365 + 1,B04fix):F_Q = 1,365,Q_vote = 2,731, restoring2 * Q_vote - M_shares = 1,366 > F_Q(<= 32.54%raw-stake safety margin atk = 33) with0zero-share active seats!- Pure-
SHA3-256HashRand-PQAsynchronous Common Coin (R4-05fix, replacingv2/v3Module-SIS RLC): Eliminates the characteristic-mismatch (char 2vsmod 8,380,417),1,280 Bnorm-overflow,1,981 Mbpsfull-matrixRBC, and0x04lattice-dependency defects ofv2/v3by pairing a congruence-exactM_coin = 256 = 3 * 85 + 1(F_coin = 85,Q_coin = 171,T_coin = 86,c_i <= 13)GF(2^256)Shamir coin with column-majorSHA3-256AVID-FPmanifest dispersal (2.03 MiBdealer matrix,< 8 MBRSS,0.69–1.34 Mbpsbackground TX,1.49–2.54 Mbpssalt-free1.0 Hzreveal, zero lattice assumptions!).- Dual-Tree
XMSS-SHAKE_22_256(0x04) Emergency Fallback (M04+R4-05fix): Disjoint2^22-leaf DAG and QC keys (24.2 dayscapacity each),fdatasyncWAL index lock, optionalHQC-192code-based KEM combiner for zero-lattice share secrecy, and2 Hz(5.57 Mbpsbase /6.17–6.59 Mbpsw/ 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 (
0Zero-Share Voting Seats): Only registered Pillars with weightw_i >= ceil(W_total / 4,096)(~0.0244%of active stake, capped atN <= 100active seats by stake rank) enterP_E = {P_0, ..., P_{N-1}}, guaranteeings_i >= 1for every member ofP_E. - Congruence-Exact Quantized Voting Vector (
M_shares = 4,096): Because4,096 = 2^12AND4,096 = 3 * 1,365 + 1(4,096 mod 3 == 1), deterministic Hamilton largest-remainder allocation produces integer voting sharess_i >= 1(sum_{i=0}^{N-1} s_i = 4,096) satisfying the exact BFT quorum intersection identity:M_shares = 4,096F_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 acrosskByzantine Pillars increases their quantized sum above raw stake by strictly less thankshares (sum_{i in Byz} s_i < (W_byz / W_E) * 4,096 + k). Consensus safety holds unconditionally wheneversum_{i in Byz} s_i <= 1,365, guaranteed for all raw Byzantine stake fractionsW_byz / W_E <= (1,365 - k + 1) / 4,096(<= 32.54%raw stake atk = 33). - Congruence-Exact Coin Share Vector (
M_coin = 256,R4-05Fix): For the pure-SHA3-256HashRand-PQcommon coin (§3),CommitteeManifest(E)derives a compact quantized coin vectorc_0, ..., c_{N-1}via capped Hamilton largest-remainder allocation onM_coin = 256 = 3 * 85 + 1with per-seat whale capc_i <= 13(5.08%) (redistributing any excess above13pro-rata across uncapped active seats; dust seats with< 0.2%stake may havec_i = 0while keepings_i >= 1voting weight):By the Hamilton Remainder Sum Lemma (M_coin = 256F_coin = (M_coin - 1) / 3 = 85 // Max quantized Byzantine coin shares (< 1/3)Q_coin = M_coin - F_coin = 171 // Supermajority coin availability quorumT_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!sum_{i in S} (c_i - 256 * w_i) <= k * (1 - k/N)),sum_{i in Byz} c_i <= 85holds up to~30.1–33.2%unground Byzantine stake (and unconditionally up to24.61%atN = 100,26.95%atN = 67,33.20%atN = 30even under adversarial sub-token remainder grinding, while safetyQ_vote = 2,731 / 4,096always holds up to32.54%). - Subject-Binding Rule (
HR-02): Each PillarP_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 (
Deltaunbounded), independent of local wall clocks. - Liveness:
- Healthy Interval: Commits in
3 Delta(~600 msat5 Hzdefault pace,~350 msat10 Hz) onProfile B(onceZP-Q11passes) or1.0 s(5rounds at5 Hz) onProfile C-AS. - Adversarial Asynchronous Regime (
Deltaunbounded, targeted DDoS / BGP delay): Terminates with probability1inO(1)expected non-overlapping 5-round waves (Mahi-MahiProfile C-ASshipping default withstride = 5, matching1.0 sMomentum v4cadence1:1— see Uncertified Meta-DAG).
- Healthy Interval: Commits in
2. Normative Post-Quantum Consensus Cryptographic Suite (R4-05, M04, M12)
| Consensus Role | Standard & Pinned Implementation | Wire Footprint | Why 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 Sig | 3.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 Sig | Separate 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 Transport | Hybrid X25519MLKEM768 + ML-DSA-44 peer.ID (Go 1.27+ stdlib crypto/tls + crypto/mldsa) | ~1.1 KiB per handshake | Closes 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 bytesper evaluation ->128-bitGrover secret strength), polynomial degree<= T_coin - 1 = 85acrossM_coin = 256evaluation points. - Sub-Epoch Bank Size & Blinding Rows: Each bank covers
B_batch = 256non-overlapping 5-round waves (1,280DAG rounds =256.0 sat5 Hz) plus4independent random degree-<= 85blinding polynomialsb_0..b_3(B_polys = 260rows total). - Peak Dealer Memory (
16xSmaller Thanv3):260 rows × 256 coin shares × 32 B = 2,129,920 B(2.03 MiBraw matrix per dealer, computed in< 8 MBpeak RSS on an8 GBRaspberry 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:
- Column-Major
LeafHashManifest(d, b)(812.5 KiB): Candidate dealerP_d(from the canonical stake-rank prefixD_candsumming to>= Q_vote = 2,731voting shares,40..67Pillars) computes for each rowr in 0..259and Pillarj in 0..N-1:(Notice: Because eachBundleHash[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])GF(2^256)polynomial of degree85 >= c_j(85 >= 13) evaluates independently and uniformly onOwned(j)conditioned on up to85 - c_jadversarial shares whenP_dis honest, even a1-share bundlec_j = 1already possesses256bits of conditional Shannon entropy (128Grover bits) — requiring0random salt bytes!) - Fiat-Shamir
GF(2^256)Linear-Combination Degree Check (10.75 KiB,2^-512QROM): UsingSHAKE256("ZNN/hr-deg/v4" || ManifestRoot)to derive4 × 256scalarsalpha_{k, w} in GF(2^256),P_dpublishes the4degree-<= 85polynomialsL_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-85row is(2^-256)^4 = 2^-1024classical /2^-512QROM with zero leakage off_{d, 0..255}(0)! 1-Hop Share Delivery +(100, 34)Reed-SolomonAVID-FPShard (0.69–1.34 MbpsTotal TX):P_dencodes(LeafHashManifest[832,000 B] || L_0..L_3[11,008 B])(843,008 B) into100GF(2^16)Reed-Solomon shards (24,795 Beach) committed underSHA3-256CodedRoot, and unicasts to eachP_j: (a)Enc(pk_j, shares_{d, 0..259, Owned(j)})(ML-KEM-768+AES-256-GCM, plus optionalHQC-192hybrid KEM under0x04), (b)224 BMerkle branch forColHash[j]inManifestRoot, and (c)Shard_j+224 Bbranch inCodedRoot(~4.52 MiBtotal TX once per256 s=0.17 Mbps).P_jdecrypts its shares, checksColHash[j]againstManifestRoot, checks all4L_kdegree equations onOwned(j), checksShard_jagainstCodedRoot, and returns a666 BFN-DSA-512receiptDealerAck(b, d, ManifestRoot, CodedRoot).- Once
P_daggregatesDealerAcks spanning both>= Q_vote = 2,731voting shares and>= Q_coin = 171coin shares intoDealerCert, at least171 - 85 = 86 == T_coinhonest coin shares hold verified evaluations and>= 34honest Pillars hold verifiedShard_js!
- Canonical Re-Encoding Agreement on
D_agreed(b)(AVID-FPUniqueness): Validators pull34Shard_js (825 KiB), interpolate(LeafHashManifest, L_0..L_3), re-encode all100Reed-Solomon shards deterministically, and verifyCodedRoot(RS_Encode(M)) == Cert.CodedRoot && ManifestRoot(M) == Cert.ManifestRoot(by minimum distance67andSHA3-256collision resistance, either every34-subset of valid shards passes and yields identicalM, or every34-subset fails!). The lowest-index certified dealers summing to>= F_Q + 1 = 1,366voting shares (K_d = 20..34dealers -> at least1honest dealer guaranteed!) formD_agreed(b)(0.69–1.34 Mbpsbackground TX /0.73–1.23 MbpsRX!).
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-BlockSHA3-256Lookups,0Merkle Siblings on Wire): Receiver hashes each32 * c_j-byte slice once and compares directly against pre-stagedLeafHashManifest(d, b)[w][j]in RAM (< 12 µsper peer!). - Exact Online Reveal Footprint (
R4-05Closed):- Average Pillar (
c_j = 2.56shares,K_d = 20..34):1,638 – 2,785 B(1.49 – 2.54 Mbpsframed TX across99peers at1.0 Hz!). 5%-Capped Whale (c_j = 13shares,K_d = 20..34):8,320 – 14,144 B(7.58 – 12.89 Mbpscoin TX, well within25 MbpsSovereign Pi 5 TX!).
- Average Pillar (
- Unique
256-BitCoin Reconstruction: Upon verifying>= T_coin = 86coin shares for everyd in D_agreed(b), any node interpolates eachf_{d, w}(0), sumsS_w = XOR_{d in D_agreed(b)} f_{d, w}(0)inGF(2^256)(0subset grinding,256bits unconditional entropy from>= 1honest 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)
Joint-Epoch Freeze(C08): If epoch boundary transition is delayed during an extended partition,P_E,s_i(4,096voting shares),c_i(256coin shares), and allPillar/Stakeunbonding exits remain frozen untilEpochTerminalDescriptor(E)commits (HashRand-PQbanks continue replenishing seamlessly across the extension via §3.2!).- True Zero-Lattice Emergency
XMSS-SHAKE_22_256(0x04,M04+R4-05Fix):- Each validator registers two independent
h = 22(4,194,304-leaf)XMSS-SHAKE_256roots inCommitteeManifest:xmss_dag_root(indexed strictly byround mod 2^22) andxmss_qc_root(indexed strictly byheight mod 2^22). - Before emitting any
0x04signature (2,884 B=4B idx + 32B r + 2,144B WOTS+ + 704B auth22),xmss_wal.gopersistshigh_water_idxviafdatasync()so power loss can never reuse a one-time WOTS+ leaf. - Activating
0x04steps DAG round cadence to2 Hz(0.4 Hznon-overlappingstride = 5coin reveal =5.57 Mbpsbase +0.60–1.02 Mbpscoin =6.17–6.59 Mbpsframed TX,24.2 daysruntime per2^22tree) and enables theHQC-192code-based KEM combiner on/znn/dag/avss/v4—making 100% of consensus auth, coin soundness, and coin secrecy completely independent of lattices!
- Each validator registers two independent