v0 (v2.5.0-rfc) · archived baseline · superseded
zBTC: Bitcoin–Zenon Interoperability Protocol Specification
Archived byte-for-byte v0 baseline (v2.5.0-rfc, commit 7b47b8c) — superseded by v1 and v2 (v3.1.0-rfc).
Version: 2.5.0-rfc (Public RFC — iteratively hardened across 6 adversarial review rounds: HOSTILE_REVIEW.md through HOSTILE_REVIEW_R6.md, with all Round-6 findings R6-H1..H2, R6-M1..M5, R6-L1..L9, and S6-1..S6-6 resolved below)
Status: Public Request for Comment (v2.5.0-rfc) — NOT mainnet-active; gated on public/independent verification, upstream ratification (§6), and executable Signet / go-zenon artifacts (§7).
Target Networks: Bitcoin Mainnet (bip-0340/bip-0341/bip-0342 Taproot + Recursive STARK/Groth16 BitVM2) ↔ Zenon Network (go-zenon origin/release/0.0.11-rc1 f19955f / origin/dev 770e893)
Numeric Oracle: All modeled struct sizes, depth-256 witness bounds, per-block OP_HASH160 w=4 W-OTS certificate-DA + Leaf-3B SHA-256 stack/size bounds, exact integer-satoshi economics, latency-aware reachability & 180-day multi-gen timeline simulation, staggered CLTV timings, slow-block tolerances, and halving-indexed K bounds are asserted by scripts/verify_spec_bounds.py (python3 -I scripts/verify_spec_bounds.py). Unmeasured Signet BitVM2 weights, circuit counts, hashrate-growth factors, and stress prices are explicitly labeled ASSUMED STAGE 0C TARGETS (Gate G-2).
Upstream Provenance:
- Vision Proposal:
https://btc-moonshot.github.io/bigidea/("A Feeless Settlement Lattice for Bitcoin") - Specifications Commons:
zenon-developer-commons(HEAD3719452) - Reference Node Codebase:
go-zenon(origin/release/0.0.11-rc1f19955f,origin/dev770e893;mastere8986a6legacy reference only)
1. Executive Summary & Governing Invariant
This specification suite defines the protocol, cryptography, economics, and go-zenon upgrades to store native BTC in a BitVM2-constrained Taproot vault on Bitcoin, represent that BTC 1:1 as zBTC (1 base unit = 1 satoshi, 8 decimals, 21,000,000 BTC cap) via an atomic Treasury Pre-Mint SettlementContract, transfer zBTC with 0 satoshi BTC fees via Zenon's QSR Plasma / SHA3-256 PoW capacity model, verify Zenon state via 30-day BLS12-381 FinalityCommitteeRoot + StateRoot proofs, and offer peg-free, zero-vault-trust PTLC adaptor swaps and Lightning submarine-swap gateways.
1.1 The Governing Invariant (with Phase-2 Adjudication Addendum)
Consensus orders. Execution computes. Authorization admits. Settlement accounts.
Phase-2 Adjudication Addendum: Under
execProfile = OPTIMISTIC,SettlementContracthosts deterministic, panic-free, bounded-CPU registered verifier plugins (VerifierRegistry, e.g.,OPTIMISTIC_BTC_SPV_V1) solely to adjudicate single-step fraud challenges againstBatchCommitmentV3.traceRoot. All plugins MUST return typederrorvalues (zerocommon.DealWithErrpanics) and support both 1-tx fast challenges (<= 12 KiBtypical) and bounded Multi-Tx Witness Sessions (UploadWitnessProof = 8,676 Bat max SMT depth 256,T_session = 12h, blockingFinalizeBatchwhile open). Under Phase 3 (ZK_VALIDITY), Settlement verifies succinct proofs only and parses zero foreign data.Boundary Addendum: Destination chains enforce through the adapter and hash-pinned Interop Enforcement Specification bound by
ChainBinding.enforcementSpecHash.
2. Normative Module Map & Authority Precedence
| Module | File | Normative Scope |
|---|---|---|
| Master | SPEC.md | Unified architecture, end-to-end flows, 5-assumption honest security model (§4), dev/release corpus errata (§5), Upstream Amendment Register incl. A-PILLAR-1 (§6), staged activation & executable gates (§7). |
| Part 1 | spec/01-bitcoin-taproot-vault-enforcement.md | Hash-pinned Bitcoin Interop Enforcement Specification (BTC-ENFORCEMENT-V1): 4-Key Registry; 30-day BLS12-381 min-sig fixed 408 B cert DA (targetCert || handoffSlot, zero-padded for 1-cert epochs; 7 per-block checksummed OP_HASH160 w=4 W-OTS messages + 6 midstates = 1,239 digits, 29,882 vB → 30 kvB derived, 3 stack-safe inputs, Leaf-3B max 265 digits, C = 1,208); inner STARK BLS12-381 + outer BN254 Groth16 split; staggered CLTVs (T_cutoff = 46d < T_kill = 56d < T_bond_expiry = 58d, 288 > 72 trap gap, 1.476x/1.591x slow-block tolerances); normative 30-day rotation schedule (reg by day 32, re-graph by day 43, cutoff day 46, disclosed 5.0d pre-epoch DeferredLockQueue window) & RoundRetireTx + fee-UTXO CLTV exits; Q_graph transcript + published Take leaf DA → Setup Committee attestation; exact integer-satoshi F_assert = 1.45 BTC (289 kvB break-even) & Bond = 3.70 BTC; Tier 1B/2; 11-item Wind-Down Plan. |
| Part 2 | spec/02-btc-authorization-domain-and-spv.md | Bitcoin Authorization Domain (d_btc_asset) & Adversarially-Bounded SPV Verifier: 17 input tags (0x00..0x10); never-pruned ActiveChainByHeight[h] (68 B); streaming SHA-256 BTC_TX_STREAM_CHUNK; multi-generation TrackedVaultRecord (<= 2 active unexpired epochs, strict duplicate/3rd-epoch rejection); SMT-absence-verified BTC_VAULT_SPEND_PROOF across ACTIVE, RELEASED, and QUARANTINED vaults + published Take-txid leaf DA; decoupled BTC_RELEASE_PROOF (admits valid fronting even if vault trapped); single-authority non-overwritable PEGOUT_SLOT_CLAIMED (lastLapsedOperatorId); VAULT_GRAPH_EPOCH_ADDED (0x0D) for ACTIVE, QUARANTINED, AND un-claimed RELEASED vaults; exact anchorExpiryTs == finalityEpochStartTs(epoch) + 58d equality; BTC_ROUND_RETIRED (0x10); Governance-only GOVERNANCE_ADD_BINDING; halving-indexed K_pilot = 14; and 29 SPV conformance vectors. |
| Part 3 | spec/03-settlement-minted-zbtc-and-feeless-rails.md | Settlement Contract, Atomic Treasury zBTC, Plasma & Peg-Free Rails: Hardened TokenContract.IssueMinted → single-use ReceiveTreasury(); never-reused batchId + parentBatchId; contiguous domainInputSeq; inductive StepTraceLeaf (328 B) + ChallengeContinuity (1,700 B); bounded Multi-Tx Sessions + ancestor-rejection refunds; latency-aware (+3.0d horizon) + reservation-aware G-21 + SyncRetiredLane + kickoff-cutoff enforcement; complete aligned Domain↔Settlement vault state machine (explicit quarantineReason + unrotatedVaultCount inc/dec, RepointTrappedPegOut, ResetFailedReimbursementSlot, SyncPendingTrapVault, SyncVaultGraphEpoch, deterministic SyncOrphanedVaultOutpoint); single-authority slot expiry + 500 ZNN SlotBondZnn + no consecutive re-claim; global <= 16 duplicate refund cap/batch; BIP-327 tweaked PTLC & LN HTLC (hashType = 1). |
| Part 4 | spec/04-bitcoin-anchoring-and-light-client.md | Bitcoin Anchoring & Light Client Verification: Genesis BTC block 710,968 lower bound; timestamp-bound checkpoint anchoring for light clients; proof-format.md V1 SmtProof; 30-day BLS12-381 min-sig FinalityCommitteeRoot (IETF BLS POP distinct DSTs, depth-5 SHA-256 committee Merkle tree, 204 B fixed cert, zero CarryOverCertificate); historical-root-verified SubmitInvalidCertProof (verifies sig under cert.FinalityCommitteeRoot, then checks ALL 7 cert fields against canonical state — economically enforcing transition-height handoffs and slashing forged handoffs at ANY height!); U2 finality gadget + 72-day post-committee-service stake lock + voluntary RequestExitCommittee clean exit (A-PILLAR-1). |
| Part 5 | spec/05-go-zenon-upgrade-plan.md | Detailed go-zenon Node Upgrade Plan: All citations verified against origin/release/0.0.11-rc1 (f19955f) & origin/dev (770e893); Phases U0–U5, TokenContract.IssueMinted → ReceiveTreasury(), pillars.go BLS12-381 key + PoP + historical-root full-preimage slashing + finality gadget + 72d post-service lock & exit, GovernanceContract + MultisigContract (Stage 1B hard gate), ChallengeDepositZnn priority lane, DeleteMomentum reorg push. |
| Oracle | scripts/verify_spec_bounds.py | Exact integer-satoshi asserting oracle deriving every struct field-by-field (PegOutState = 190 B), per-block OP_HASH160 w=4 W-OTS cert-DA + 7-block Leaf-3B SHA-256 (1,239 digits, 29,882 vB → 30 kvB, Leaf-3B stack <= 265 digits, C = 1,208), depth-256 upload (8,676 B), all 17 fast paths incl. inserted keys (<= 11,300 B), F_assert = 1.45 BTC (289 kvB break-even) & Bond = 3.70 BTC, latency- & reservation-aware reachability + 180-day simulation (max_gens = 2, 5.0d pre-epoch DeferredLockQueue), staggered CLTVs (46d < 56d < 58d, 1.476x/1.591x slow-block tol), 72d lock, watcher liquidity (1.46 BTC/lane), 31,500 ZNN min op bond + 500 ZNN SlotBondZnn, exact Poisson (353/472), and halving-indexed K_pilot = 14. |
2.1 Authority & Conflict Precedence
- Deployed Zenon L1 consensus rules and upstream
Project Zeno/spec/SPEC.md(after Phase-2 Amendments §6 are ratified upstream). GENERALIZED-AUTHORIZATION-BRIDGE-FRAMEWORK.mdv0.3.2 &MINTED Settlement Extensionv0.1.1 (with §6 amendments).spec/03&spec/05(go-zenonSettlement & upgrade instantiation).spec/02(d_btc_assetSPV verifier).- Hash-pinned
spec/01(BTC-ENFORCEMENT-V1). spec/04(anchoring and light clients).
3. End-to-End Protocol Flows
3.1 Peg-In: BTC → BitVM2 Taproot Vault → Atomic Treasury zBTC
- Provisional Deposit: User derives
ProvisionalDepositScript(P_prov = lift_x(H_NUMS_X) + depositCommit * G, key-path unspendable; Leaf A =CommitteeIdentityKey; Leaf B =<144> OP_CSV <depositorRefundPubKey>) committing(chainBindingHash, assetId, zenonRecipient[0]==0x00, depositNonce, u64BE(D_bucket))and broadcastsDepositTx(<= 4,096 B, non-coinbase,len != 64). - Normative Two-Phase Ceremony, Transcript Attestation & Mandatory 2-Input Rollover (
R5-L8):- Phase 1 (Trap Commitment First): Each participating Operator
mdelivers verifiedpk_msignatures on BOTHWrongDepositDisproveTx^{T1}ANDWrongDepositDisproveTx^{T2}across active fresh rounds of generationgBEFOREQ_graphreleases any Take signature. - Phase 2 (Take Release, Published Leaf DA, Transcript & Rollover): For operators passing Phase 1,
Q_graphreleasesTake1Tx/Take2Txsignatures and signs a canonicalQ_graphrelease transcript listing the exact sorted set of released Take txids (takeTxidsSmtRoot—proof-format.mdV1 SMT keyed bySHA3-256(takeTxid)— PLUS canonicaltakeTxidsBlobHashcommitted alongside published leaf-set DA so any watcher can construct SMT absence proofs,R6-L5). The distinct Setup Committee (CommitteeIdentityKey) independently verifies theQ_graphtranscript & published leaf set, signs the lock attestation(rolloverOutpoint, eligibleOperatorsBitmask, epochId = g, takeTxidsSmtRoot, takeTxidsBlobHash), and broadcasts mandatory 2-inputRolloverTx_d(nSequence = 0xfffffffd, ReserveIn 1,Out 0 = TerminalVaultUTXO_dpayingQ_vault_d). New deposits after geng+1registration MUST carry ag+1graph (R6-L4). If unconfirmed byh_dep + 120, Reserve MUST double-spendIn 1(depositor Leaf-B RBF fallback ath_dep + 144).
- Phase 1 (Trap Commitment First): Each participating Operator
- SPV Proof Relay: Relayer submits
BTC_HEADER_BATCH, optionalBTC_TX_STREAM_CHUNK, andBTC_LOCK_PROOF(<= 7,748 BABI).d_btc_assetverifies both txs against never-prunedActiveChainByHeight[h](K_pilot = 14), verifiesCommitteeIdentityKeysig, records multi-epochTrackedVaultRecord{ACTIVE, activeEpochs=[{g, takeTxidsSmtRoot}]}, and emitsFOREIGN_LOCK. - Chained Optimistic Batch, Rotation & Atomic Mint: Executor submits
BatchCommitmentV3(monotonicbatchId,parentBatchId,PreStateRootchaining, contiguousdomainInputSeq,MaxBatchInputs = 256). After48h(up to60hwith open challenge session),FinalizeBatchfinalizes and releases exposure.RelayClaiminvokesMINTED_LOCK_V1, enforces G-21 Latency-Aware Dynamic Reachable Fresh Capacity (ActiveVaultUTXOs + 1 <= Σ (ReachableRounds(now + 3.0d) - pendingReservations) - 25, blocked ifunrotatedVaultCount > 0; smoothly defers mints toDeferredLockQueueduring the disclosed~5.0dpre-epoch window before geng+1registers at day30–32), records per-epochVaultUtxoSet[outpoint_d], and atomically transfersD_bucketzBTCfrom treasury tozenonRecipient.
3.2 Feeless zBTC Transfers on Zenon Block-Lattice
Standard zBTC user transfers pay 0 satoshis BTC fee and 21,000 base Plasma funded via refundable QSR fusion (10 QSR at floor price 1000) or SHA3-256 PoW (dev:pow/pow.go:35-47,61,118, 31.5M expected hashes at floor price; 0.1–0.3s desktop native, ~2–10s mobile/WASM). Network-wide L1 capacity is 5` full send+receive user transfers/s).100 blocks per 10s Momentum (`
3.3 Peg-Out: Atomic Burn → Anti-Censorship Fronting Slot → FrontingTx → Zenon RELEASED → BitVM2 Reimbursement
RequestPegOut(open duringACTIVE,DRAINING_ROLLOVER_STOP, ANDDRAINING_FINAL): User sendsD_bucketzBTCwith(recipientScriptPubKey, refundRecipient, timeoutHeight, pegOutFeeSats >= minOperatorFeeSats + fixedReserveFeeSats).Settlementvalidatestip + 640 <= timeoutHeight <= tip + 2512 && timeoutHeight < 500_000_000, pops anUNASSIGNEDoutpoint_dholding a live graph epochewith>= 1eligible active operator havingReachableRounds(e, now + 3.0d) - pendingReservations >= 1(R6-M2), copiesrec.ChainBindingHash = outpoint_d.SetupChainBindingHash, retainsD_bucketzBTC, and appendsPEGOUT_CREATED(0x03).- Single-Authority, Anti-Censorship Fronting Slot (
R6-M2,R6-M4,R6-M5) &FrontingTx: An eligible operator in a live graph epocheofoutpoint_dwithReachableRounds(e, now + 3.0d) - pendingReservations >= 1callsClaimFrontingSlot(outboxId)(requiringVaultUtxoSet[d].status == ASSIGNED, locking forfeitableSlotBondZnn = 500 ZNN, reserving 1 lane round, barring consecutive re-claim bylastLapsedOperatorId, and rejecting until BOTHnow >= slotClaimZenonTs + 14_400ANDlastFinalizedTipHeight >= slotExpiryBtcHeight!). AppendsPEGOUT_SLOT_CLAIMED(0x0A);d_btc_assetis the single authority on slot exclusivity (BestTipHeight + 24,slotClaimZenonTs + 14_400). Operator broadcastsFrontingTxand submitsBTC_RELEASE_PROOF;d_btc_assetALWAYS admits valid fronting regardless of vault trap status (R6-M3), emittingFOREIGN_RELEASE(operatorId);MINTED_RELEASE_V1keys strictly onFOREIGN_RELEASE.operatorId, releasesSlotBondZnn, and transitionsPegOutRecordtoRELEASED(re-pointable viaRepointTrappedPegOutif another operator's substitution trappedoutpoint_d!). - Reachability-Checked Reimbursement & Staggered-CLTV BitVM2 Payout: Winning operator
mcallsClaimReimbursementSlot(outboxId, operatorId_m, roundId)(verifiesepoch(roundId)is inVaultUtxoSet[outpoint_d].epochEntrieswithm's bit set,roundIdis registered & unused on an unretired lane, AND serial kickoff feasibilitymax(now, lastClaimedTs + 5.5d) <= anchorCutoffTs = E_anchor_ts + 46d, consuming its lane reservation; recoverable viaResetFailedReimbursementSlotif the claimed round expires/burns without operator fraud!) and broadcastsRoundKickoffTx_{m,l,r}(Bond = 3.70 BTC, per-field checksummedOP_HASH160w=4W-OTSW_kick).- Unchallenged (
T_happy = 144):Take1Tx_{d,m,l,r}(Out 2 <pk_m>CPFP) pays0.99899 BTCtoReimburseEscrow^{T1}(72-block CSV ORWrongDepositDisproveTx^{T1}routing0.99899 BTCtoQUARANTINEDRecoveryVaultUTXO_d, burning2.70 BTCbond, paying watcher1.00 BTC - fee; verifier-decided SMT inclusion/absence onBTC_VAULT_SPEND_PROOFacrossACTIVE/RELEASED/QUARANTINEDkeeps registered Takes inPENDING_TRAPfor230blocks, mirrored viaSyncPendingTrapVault!) AND0.00100 BTCto Reserve. - Challenged (
ChallengeTx,Out 0 = F_assert = 1.45 BTC, terminal sink): Under Assumptions #2 & #3, operator postsAssertStartTx(288) → parallelAssertCertDATx(29,882 vB → 30 kvBderived per-blockOP_HASH160w=4W-OTS,3stack-safe inputs publishing the fixed408 BtargetCert || handoffSlotacross7independently-checksummed SHA-256 blocks +6midstates =1,239digits, verified by7stack-safe Leaf-3B chunks<= 265digits,C = 1,208!) + parallelAssertChunkTx_{1..32}(+72) →AssertEndTx(+72). Any failure triggersDisproveTx/BurnBond*Tx(SelfSlash <= -0.20 / -0.40 BTC,HonestOp >= +0.195 BTC@500 sat/vB, break-even289 kvB), PLUSBTC_OPERATOR_SLASH_PROOFslashes100%of Operatorm's>= 31,500 ZNNbond! - Closed Rotation & Staggered CLTV Exit (
R5-H3,R5-L3,R6-L4): Geng+1is registered by day32(E_anchor(g+1) = E_anchor(g) + 1), all live vaults (UNASSIGNED,ASSIGNED,QUARANTINED, AND un-claimedRELEASED) are re-graphed ontog+1viaVAULT_GRAPH_EPOCH_ADDED(0x0D) by day43(QuarantineExpiredVaultunlocks atT_kickoff_cutoff + 60h = day 48.5so finalized batches never race quarantine!); operators exit gengbonds cleanly viaRoundRetireTx(syncingBTC_ROUND_RETIRED0x10) during[day 51.5, day 58);StaleConnB/CKillTxlocks out Takes atT_kill_expiry = day 56andStaleChainBurnTxburns unretired bonds atT_bond_expiry = day 58(288 > 72blocks afterT_kill_expiryso traps can never be pre-empted!).
- Unchallenged (
- Non-Delivery Refund: If no
FrontingTxis admitted beforecheckpointH = timeoutHeight + 558reachesK_pilot = 14,BTC_NON_DELIVERY_PROOFemitsFOREIGN_NON_DELIVERY;MINTED_REFUND_V1returnsD_bucketzBTCtorec.RefundRecipient, releases the reservation, and re-enqueuesoutpoint_dONLY ifVaultUtxoSet[outpoint_d].status == ASSIGNED(never overwritingPENDING_TRAP,RECOVERED, orQUARANTINED!).
3.4 Peg-Free Routes (Zero Vault Trust)
Specified in spec/03 §5:
- PTLC Taproot MuSig2 Adaptor Swaps: Bob locks
zBTC(PtlcContract.Create,T_znn >= T_btc_worst + 6h) BEFORE Alice releases her BIP-327 tweaked (x(Q_swap),PartialSigAggincl.e·g_key·t_acc) adaptor partial signature;T_btcanchored toh_conf + 12. - HTLC Atomic Swaps & Lightning Submarine-Swap Gateway:
HtlcContractwithhashType = 1(dev:vm/embedded/definition/htlc.go:92), inbound Hold InvoiceACCEPTEDbefore gateway lockszBTC.
4. Honest End-to-End Security & Threat Model (5 Explicit Tier 1A Assumptions — R5-L5)
Tier 1A BitVM2 vaults are NOT trustless. Delivered security is bounded by the weakest of FIVE explicit Tier 1A assumptions (plus optimistic claim admission):
- Zenon 30-Day BLS12-381 Finality Committee Honesty & Reachable Slashing Backstop (
R6-H1,R6-H2,G-23): A colluding>= 21-of-30(> 2/3weight) Pillar supermajority in any 30-day finality epoch fromE_anchoronward can forge aFinalityCertificate(or forged handoff). Deterred and bounded (subject to Assumption #3 challenging invalid kickoffs) by three coupled mechanisms:- Mandatory Bitcoin Certificate Publication (
AssertCertDATx,29,882 vB → 30 kvBderived): On any challenge, the operator MUST publish the fixed408 BtargetCert || handoffSlot(0x00^204when no handoff exists) across7independently-checksummedOP_HASH160w=4W-OTS SHA-256 blocks +6midstates (1,239digits), verified by7stack-safe Leaf-3B chunks (<= 265digits/leaf,C = 1,208). - Historical-Root Full-Preimage Slashing (
R6-H1):PillarContract.SubmitInvalidCertProof(cert)verifies the BLS12-381 signature under the historical Tag-15 committee matchingcert.FinalityCommitteeRoot(NOT merelycanonicalSigningCommitteeRoot(cert.Height)!), then compares ALL 7 certificate fields against canonical Zenon state atcert.Height(withchainIdbound in the signing digest). BecauseCarryOverCertificateis deleted, ANY committee-E-signed forged handoff or target at ANY height in epochE+1(transition OR non-transition!) is slashable on Zenon when published on Bitcoin, economically enforcing the handoff pin without requiring an in-circuit oracle! - Staggered
56d/58dBitcoin CLTV Expiry + U272-Day Post-Service Stake Lock (A-PILLAR-1): EveryRoundChainexpires on Bitcoin byday 58, while every Pillar's15,000 ZNNcollateral stays locked and slashable for72days after its last finality epoch (>= 58d + 14dgrace, independent of per-Pillar% 90drevoke phase), backing the Governance supply cap (MaxRepresentationSupply * SpotPrice <= 157,500 ZNN, weekly Governance check + Guardian TWAP trigger; pilot15 BTC@ASSUMED 10,500 ZNN/BTC). (Note: unchallengedTake1Txforgeries do not publish certs — prevented by Assumption #3!)
- Mandatory Bitcoin Certificate Publication (
- 1-of-N Live Verifier Committee Honesty (
Q_graph,N >= 7Pilot): At least 1 of $N$ independentQ_graphverifier members remains honest in perpetuity (never signing unauthorized vault/connector spends, enforcing Phase-1-before-Phase-2 ceremony order, signing accurate release transcripts, and co-signing 30-day round-chain rotations & recovery re-graphing). (Per-round keysQ_roundARE deleted at round setup. Permanent loss of 1-of-NQ_graphmember stops new rotations and recovery re-graphing; existing vaults remain redeemable through reachable active rounds prior toT_kickoff_cutoffunderG-21, after which Governance Wind-Down applies.) - 1-of-N Altruistic, Capitalized Bitcoin Watcher Liveness: Against a rational fraudulent operator who self-slashes (
-0.20..-0.40 BTCburn vs-2.25..-3.70 BTCvs watcher) via private miner submission — OR under third-party miner MEV (M-03) — challenging has realistic expected value-(F_assert + f_chal) = -1.4600 BTC@500 sat/vB. Safety explicitly assumes at least 1 altruistic / stakeholder-funded watcher with liquid capital>= 1.46 BTCper concurrently-fraudulent lane (14.60 BTCworst-case simultaneous fraud across all 10 pilot lanes, plus small tx fee forStaleConn{B,C}Killfallback). Operator fraud is strictly deterred by Bitcoin burn (-0.20..-2.70 BTCeven self-slashed) PLUS100%slashing ofOperatorBond_ZNN >= 31,500 ZNN(>= 3.0 BTCequivalent) + deactivation of all lanes! - 1-of-N Honest Setup Committee (
CommitteeIdentityKey,N >= 7Pilot, Distinct fromQ_graph—R5-L5): At least 1 of $N$ Setup Committee members honestly verifiesQ_graphrelease transcripts andRolloverTx/RoundGenesisTxartifacts before signingDepositTxLeaf A,BTC_LOCK_PROOF,OPERATOR_ROUND_REGISTERED, andVAULT_GRAPH_EPOCH_ADDED. (All-$N$ compromise ofCommitteeIdentityKeyalone cannot spend existingQ_vault_dvaults, but can divert in-flight deposits, register phantom rounds inflatingG-21, attest manipulatedtakeTxidsSmtRoots delaying raw-sweep halts by230blocks, or activate quarantined vaults with invalid graphs.) - Groth16 BN254 Outer-Wrapper Trusted Setup (CRS): Soundness of
vk_bitvmdepends on 1-of-K honesty in the public Phase-2 CRS ceremony (K >= 50contributors, transcript pinned inenforcementSpecHash). - Optimistic Claim Admission & Anti-Frontier Boundary:
<= weaker(execProfile = OPTIMISTIC, foreignProfile = LIGHT_CLIENT),MaxAggregateInFlightMint = 10.0 BTC(pilot), halving-indexedK_pilot = 14(pre-2032 migration/cap rule), bounded Multi-Tx Sessions (T_session = 12h,8,676 B@ depth 256),ChallengeDepositZnn-ordered priority lane, and strict prohibition of $O(k)$ bounded-frontier verification on bridge gates (docs/architecture/bounded-verification-boundries.md).
5. Reference Corpus Errata Resolved (Verified Against origin/dev 770e893 / release/0.0.11-rc1 f19955f)
go-zenonbaseline: PhaseU0targetsorigin/release/0.0.11-rc1(f19955f) /origin/dev(770e893), carryingPtlcSpork,DynamicPlasmaSpork+EmbeddedSendBasePlasma(dev:vm/plasma.go:192),EmbeddedRefundSpork,Libp2pSpork,EpochRewardTermsSpork, composableembeddedVariants(dev:vm/embedded/embedded.go:246), andMaxDataLength = 16,384(dev:vm/constants/plasma.go:67).TokenContract:checkToken(dev:vm/embedded/implementation/token.go:40,43), data-lessIssuedescendant (dev:vm/embedded/implementation/token.go:163-172) failingdev:vm/vm.go:204-226, and owner-burn (dev:vm/embedded/implementation/token.go:330). Resolved viaTokenContract.IssueMinted→ single-useSettlementContract.ReceiveTreasury()+Burn/UpdateTokenguards.- Consensus, Pillars, PoW, HTLC, Subscribe & Verifier on
dev/release: 24h consensus epoch (dev:consensus/consensus.go:45,86),PillarStakeAmount = 15,000 ZNN(dev:vm/constants/embedded.go:108), per-Pillar phased(83d + 7d)revoke (dev:vm/constants/embedded.go:115-120,dev:vm/embedded/implementation/pillars.go:132-138,395-400), SHA3-256 PoW (dev:pow/pow.go:35-47,61,118),HashTypeSHA256 = 1(dev:vm/embedded/definition/htlc.go:92),AccountBlock.ComputeHash()(dev:chain/nom/account_block.go:283),ErrMDataMustBeZero(dev:verifier/momentum.go:198), emptyDeleteMomentum(dev:rpc/api/subscribe/api.go:357). - Upstream doc errata: Portal v1.5 retarget max
4,838,400s, 10s Momentums, valid NUMS hex50929b74..., mislabeled0x1800ff80vector, andbitcoin_anchoring.pdf§4.1 bare-OP_RETURN-in-Tapscript prohibition.
6. Upstream Amendment Register (Blocking Mainnet Registration)
| ID | Upstream Target | Blocking Conflict / Gap | Normative Amendment Required |
|---|---|---|---|
| A-SPEC-1 (U-01) | SPEC.md v1.6.0 S:130,352 | Phase-1 reserves L1_RELAYED and defines only input_kind 0..5. | Activate L1_RELAYED (inputSource = 1) + input_kind = 6 (RelayedInput) & 7 (SystemInput) in Phase-2 Profile. |
| A-SPEC-2 (C-08, R2-C4, U-08, U-18i) | SPEC.md §19, §27.7 (S:190,1224); M:1632,2107 | Receipt lacks per-input roots; batch needs parentBatchId, policyVersion, traceRoot with inductive per-leaf accumulators, observedChainHeight, domainHalted. | Extend BatchCommitmentV3 (versioned per SPEC.md §20) with parentBatchId, policyVersion, traceRoot, observedChainHeight, domainHalted, haltedReorgHeight. |
| A-SPEC-3 (U-03, U-18iii) | SPEC.md S:881-889 vs M:3346 | SPEC.md requires MaxBatchMint & coupled mint/burn bounds; Manual uses R + P <= B. | Mandate MaxBatchMint + aggregate TotalInFlightMint / MaxInFlightMintPerExecutor and codify equivalence with R + P <= B. |
| A-SPEC-4 (U-07, U-18ii) | SPEC.md S:1186 & M:3254,3479 | M:3479 asks to reuse kind=1 outbox, yet RequestPegOut is a direct L1 tx and AUTHORIZATION domains MUST have empty outboxRoot (M:2115). | Standardize domain-separated L1 peg-out ID SHA3-256("ZNN_L1_PEGOUT_V1" || domainId || pegOutSeq || sendBlockHash) directly on L1 PegOutRecord. |
| A-SPEC-5 (U-18iv) | SPEC.md S:972 vs M:1504,2175 | Contradictory inequality direction between WithdrawalDelay and challengeWindow. | Unify Phase-2 OPTIMISTIC: batchFinalizationDelay == executionChallengeWindow >= MinWithdrawalDelay (extended up to +T_session while an active challenge session is open). |
| A-SPEC-6 (R2-L2, U-12) | SPEC.md S:296,309 vs M:1417 | SPEC.md uses domainClass = EXECUTION|BRIDGE|MESSAGING & PROOF_VERIFIED; Manual uses EXECUTION|AUTHORIZATION & PROOF. | Reconcile enum names & 0-based ordinals normatively across SPEC.md and Manual (AUTHORIZATION, PROOF_VERIFIED). |
| A-BTC-1 (C-01, C-02, R2-L3) | BTC-AUTHORIZATION-DOMAIN.md M:3887,4079,4304 | Required Bitcoin TimeoutCancelTx and relay-time bestTipHashBE in NON_DELIVERY event ID. | Gate BitVM2 reimbursement strictly on Zenon PegOutRecord.State == RELEASED + ReimbursementRound; admit FOREIGN_NON_DELIVERY on deterministic K-confirmed checkpoint ActiveChainByHeight[timeoutHeight + ReleaseSubmissionGrace]. |
| A-MINT-1 (U-18v, C-11) | MINTED v0.1.1 §3 (M:3132,3225) | Assumes abstract Core-internal creditOrMintZTS. | Ratify TokenContract.IssueMinted → single-use SettlementContract.ReceiveTreasury() Atomic Treasury Pre-Mint realization. |
A-PILLAR-1 (R5-L6) | go-zenon pillars.go (dev:pillars.go:132-138,395-412) | Pillars currently hold only Ed25519 keys and withdraw 15,000 ZNN immediately on their % 90d phase. | Ratify Phase U2 Pillar staking terms: (1) BLS12-381 min-sig finality key + PoP (RegisterFinalityKey), (2) 72-day post-committee-service slashable lock after a Pillar's last 30-day finality epoch, and (3) voluntary RequestExitCommittee() removing the Pillar from future snapshots so Revoke withdraws cleanly as soon as the 72-day lock elapses without waiting an extra % 90d cycle! |
7. Phased Delivery & Executable Verification Gates
| Stage | Scope | Mandatory Exit Criteria |
|---|---|---|
Stage 0A (U0–U2) | Ship release/0.0.11-rc1 (f19955f), StateRootSpork (v3, proof-format.md V1), CommitteeRootSpork (v4, 30-day BLS12-381 min-sig FinalityCommitteeRoot with distinct IETF POP DSTs, U2 finality gadget, historical-root full-preimage SubmitInvalidCertProof + SubmitEquivocationProof, 72-day post-service stake lock + RequestExitCommittee, A-PILLAR-1), DeleteMomentum WS reorg push. | Genesis-to-tip sync parity; smt-v1-test-vectors.json pass; MUST-fail slashing tests for committee-E forged handoff at h_trans(E+1)+1 AND committee-E target in epoch E+1 (R6-H1); Signet↔Zenon PTLC & HTLC adversarial suite (G-18). |
Stage 0B (U3–U4) | Ratify §6 amendments; build OffchainExecutionSpork, MintedZbtcSpork (IssueMinted → single-use ReceiveTreasury()), OptimisticRefereeSpork, panic-free vm/embedded/btcspv/ (17 tags incl. SMT absence/inclusion across ACTIVE/RELEASED/QUARANTINED 0x08, decoupled 0x06, multi-gen 0x0D incl. RELEASED, 0x10), bounded Multi-Tx Sessions + commit-reveal, zenon-executor. | go-zenon unit test for IssueMinted→ReceiveTreasury() & rollbacks (G-11); all 29 SPV vectors + 15+18 MINTED vectors; adversarial ground-tree CI fuzzer proving Multi-Tx Session blocks FinalizeBatch at T-1 and succeeds at depth 256 (G-9). |
| Stage 0C (Signet BitVM2 + Governance) | Implement inner STARK (BLS12-381 + SMT) → outer Groth16 BN254 circuit (<= 15 min GPU prover target), per-block OP_HASH160 w=4 W-OTS AssertCertDATx + 7-chunk Leaf-3B SHA-256 (G-23), closed R=8 staggered-CLTV DAG + 1p1c package relay policy tests (G-1), measure REAL assert/DA/SHA-256-chunk weights & peak stack replacing ASSUMED_STAGE_0C_TARGET_* (G-2); deploy GovernanceContract + MultisigContract (M-15 hard gate). | Published Signet txids for 2-in rollover, RoundKickoffTx, RoundRetireTx, staggered StaleConnB/CKillTx (56d) & StaleChainBurnTx (58d), Take1Tx+CPFP, ChallengeTx→AssertCertDATx+AssertChunk→Take2Tx+CPFP (both 1-cert zero-handoff and 2-cert), DisproveTx (incl. Leaf-3B SHA-256 + forward-hashed digit rejection!), BurnBond*Tx, WrongDepositDisproveTx^{T1,T2}, and all MUST-fail vectors; zero single-key SporkAddress. |
| Stage 1A (Shadow) | Publish pinned BTC-ENFORCEMENT-V1 bytes (enforcementSpecHash), Groth16 CRS ceremony transcript (>= 50 contributors), audits, funded Operations Reserve (>= 0.5 BTC). Run d_btc_asset in Status = PAUSED (SubmitInput/SubmitBatch/Challenge*/FinalizeBatch LIVE; ONLY RelayClaim/RequestPegOut disabled). | >= 30 days uninterrupted mainnet header/retarget tracking & batch finalization; zero watcher divergence; published Signet permanent-failure drills. |
| Stage 1B (Capped Pilot) | Unpause d_btc_asset via GovernanceContract exit window with D_bucket = 1.0 BTC, M >= 5 ops × 2 lanes (3.70 BTC/lane = 37.0 BTC steady / 74.0 BTC 8–28d overlap, R = 8 ⇒ 80 day-0 fresh capacity, 1.82 BTC/day) + OperatorBond_ZNN >= 31,500 ZNN/op + 500 ZNN SlotBondZnn, T_kill = 56d / T_bond_expiry = 58d, MaxRepresentationSupply = 15 BTC (weekly Governance check <= 157,500 ZNN), AggregateInFlightMint <= 10 BTC, K_pilot = 14, altruistic watcher pool (>= 1.46 BTC/lane). | Live peg-in, feeless transfers, anti-censorship fronting + single-use reimbursement, routine 30-day rotation (with disclosed 5.0d pre-epoch DeferredLockQueue window), and non-delivery refund verified with zero conservation drift. |
Attack this spec & submit feedback
This is a Public RFC updated to v2 (v3.1.0-rfc) in response to Consolidated Hostile Review R8 (redlining against archived v1 / v3.0.0-rfc). Humans and AI review agents are invited to run python3 -I scripts/verify_spec_bounds.py, inspect the v1 → v2 changelog & redlines, file findings, or open pull requests.