v0 (v2.5.0-rfc) · archived baseline · superseded
Part 1: Bitcoin Interop Enforcement Specification (BTC-ENFORCEMENT-V1)
Document Class: Normative Destination Enforcement Specification (v2.5.0-rfc, subject to Upstream Amendments A-BTC-1 & A-PILLAR-1)
Spec Identifier: BTC-ENFORCEMENT-V1
Target Chain: Bitcoin Mainnet (bip-0340 Schnorr, bip-0341 Taproot, bip-0342 Tapscript, SegWit v1 P2TR)
Bound Domain: d_btc_asset (zBTC MINTED custody)
Numeric Oracle: All modeled economic, derived per-block OP_HASH160 w=4 W-OTS DA, Leaf-3B SHA-256 stack/size, latency-aware reachability, 180-day multi-gen timeline, staggered CLTV, slow-block tolerance, and joint fee-source inequalities below are asserted in exact integer satoshis in scripts/verify_spec_bounds.py. Unmeasured Signet BitVM2 circuit & weight parameters (~3.5M outer Groth16 constraints, <= 15 min GPU STARK+Groth16 prover time, 95 kvB / <= 380 kWU max disprove chunk incl. Leaf-3B SHA-256 peak stack <= 1,000, 220 kvB Groth16 assert, 2 kvB challenge, 1 kvB burn/retire/Take+CPFP, 3 kvB wrong-deposit disprove, L = 32, C = 1,208) are explicitly ASSUMED STAGE 0C MEASUREMENT TARGETS until measured on Signet (Gate G-2).
1. Scope & Custody Profiles
| Profile | Mechanism | Custody Trust Root | Status |
|---|---|---|---|
| Tier 1A (Primary Canonical) | Live 1-of-N Q_graph + Deleted-Q_round Closed-Lifecycle Serial Round-Chain BitVM2 Taproot Vault (State == RELEASED + single-use ReimbursementRound + AssertCertDATx BLS12-381 cert DA) | min(1-of-N live Q_graph, 1-of-N Setup Committee, 1-of-N altruistic capitalized watcher, Zenon 2/3 30-day BLS12-381 Finality Committee with 56d/58d CLTV expiry + 72d post-service lock, 1-of-K Groth16 CRS) | Normative design target |
| Tier 1B (Optional Sovereign) | Per-Deposit Self-Custodial Taproot Escrow (Portal V2 Class R: per-deposit MuSig2 + Schnorr adaptor + unconditional CLTV depositor exit) | Depositor co-signs key path; unilateral CLTV refund after expiry | Optional separate binding & expiring AssetID |
| Tier 2 (Future Research) | Batched / UTXO-Set Bitcoin Covenant (depends on future Bitcoin soft-fork opcodes) | Bitcoin L1 consensus + SNARK soundness + Zenon consensus | Non-normative research target (M-12) |
Explicit Prohibitions: Portal V2 "Class P" custodial pooled multisigs and ANY governed/custodial emergency exit timelock leaf on Tier 1A vault UTXOs are STRICTLY FORBIDDEN (C-07).
Q_graphverifier daemons are deterministic open-source signers that ONLY sign valid BitVM2 reimbursement/recovery graphs.
2. Cryptographic Primitives, Per-Block OP_HASH160 W-OTS, Fixed 408 B Cert DA & Leaf 3B (R6-H2, R6-M1, R6-L1, G-23)
- Curve & Tagged Hashes:
secp256k1(BIP-340/341/342);H_NUMS_X = 0x50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0(lift_x(SHA256(uncompressed G))); tagged tweakszBTC/DepositTweak/v1,zBTC/VaultTweak/v1(Q_vault_d = Q_graph + H_{"zBTC/VaultTweak/v1"}(x(Q_graph) || depositOutpoint)*G, key-path-only),zBTC/RecoveryTweak/v1(Q_rec_d = Q_graph + H_{"zBTC/RecoveryTweak/v1"}(x(Q_graph) || oldVaultOutpoint)*G, key-path-only), andzBTC/PortalDepositKey/v1. - Per-Field & Per-Block Checksummed BitVM W-OTS (
w = 4,OP_HASH160, No Bitmasks —R6-L1): Every value compared in Tapscript uses an independent BitVM Winternitz OTS keypair (no bitmasks;OP_HASH16020-byte chains,16-step per nibble) with its own base-16 checksum so forward-hashing ANY digit invalidates its checksum:W_outpoint(claimedOutpoint: 36 B = 72 + 3 nibbles),W_outbox(32 B = 64 + 3),W_fronting(32 B),W_batch(8 B),W_binding(32 B),W_certda(certSetDigest: 32 B = 64 + 3),W_pubinput(32 B), plus the7per-block DA keysW_blk_0..6and6midstate keysW_mid_1..6below! - First-Principles Derived Bitcoin Certificate DA & Stack-Safe Leaf-3B SHA-256 (
R6-H2,R6-M1, ZeroOP_CAT!):- Epoch Alignment & Fixed
408 BTwo-Slot Encoding (R6-M1,S6-3): EachRoundChainalignsE_anchor_ts = finalityEpochStartTs(E_anchor)(delta = 0, enforced by exact equality in both registries —R6-L6) under 30-day finality epochs (spec/04 §3.1). BecauseT_bond_expiry = E_anchor_ts + 58 days < 60 days, every active chain spans at mostfloor(58 / 30) = 1handoff certificate +1target certificate. Using IETF BLS12-381min-sig(48 Bcompressed G1 sig +4 BsignerBitfield, fixed204 Bup to all30signers), the committed DA bytes are ALWAYS a fixed408 B(3,264bits):certSetBytes = targetCert (204 B) || handoffSlot (204 B)wherehandoffSlot = handoffCert (204 B)whentargetCert.finalityEpochIndex == E_anchor + 1, OR204 zero bytes (0x00^204)whentargetCert.finalityEpochIndex == E_anchor(days0–30, zero handoff!). Thus BOTH 1-cert and 2-cert assertions hash identically across7SHA-256 blocks (408 + 9 Bpadding ⇒6full64 Bblocks +1final24 Bdata block with hardcoded padding0x80 || 0^31 || u64BE(3264)), producing6intermediate32 Bmidstates (192 B)! - Per-Block W-OTS Granularity (
R6-H2,1,239Digits,29,882 vB → 30 kvB): To prevent both cross-block checksum bloat AND checksum-less digit-forwarding attacks,AssertCertDATxcommits 7 independent per-block W-OTS messages (W_blk_0..6) + 6 independent midstate messages (W_mid_1..6):W_blk_0..5:6 × (128 + 3) = 786digits (128 * 15 = 1,920 < 16^3);W_blk_6(24 Bdata; padding hardcoded inL3B_6):48 + 3 = 51digits (48 * 15 = 720 < 16^3);W_mid_1..6:6 × (64 + 3) = 402digits (64 * 15 = 960 < 16^3);- Total =
1,239OP_HASH160w=4digits at exact95.5 WU/digit(191half-WU/digit), split across3stack-safe inputs ([393, 444, 402] <= 492digits/input under Bitcoin's1,000-element limit) in ONEAssertCertDATx: exact derived weight =29,882 vB→30 kvBdesign budget (scripts/verify_spec_bounds.py§4A!). Slashing extractors reassembletargetCert || handoffSlotdirectly fromW_blk_0..6.
- Stack-Safe Leaf 3B (
7Disprove Chunks,Leaf 3B_0..6, TotalC = 1,200 + 7 + 1 (L3A) = 1,208—R6-H2,S6-2,S6-6): Each chunkL3B_jverifies the complete checksummed W-OTS messages ofW_blk_j,W_mid_j, andW_mid_{j+1}(mid_0 = SHA256_IVhardcoded,mid_7 = W_certda) and runs ONE standard BitVM2 arithmetic SHA-256 compression (SHA256_compress(mid_j, blk_j) != mid_{j+1}):L3B_0 = 198digits,L3B_1..5 = 265digits (530initial witness elements, leaving470free under1,000for SHA-256 working stack!),L3B_6 = 185digits (each<= 95 kvB/<= 380 kWUASSUMED STAGE 0C TARGET, Gate G-2). Forward-hashing ANY digit invalidates its block/midstate checksum!
- Epoch Alignment & Fixed
- Inner STARK → Outer BN254 Groth16 Circuit Split (
R6-H1,R6-L7):- Inner STARK / zkVM (BLS12-381 + SHA3-256 Precompiles): Executes ALL heavy cryptography inside the inner STARK (
ASSUMED STAGE 0C TARGET: <= 15 minGPU prover time<< 288-blockAssertStartdeadline, Gate G-2): (i)certSetDigest == SHA256(targetCert || handoffSlot)over all408 B, (ii) enforceshandoffSlot == 0x00^204ifftargetCert.finalityEpochIndex == E_anchor, else verifieshandoffCertBLS12-381min-sigdual supermajority (up to 30 G2 keys, depth-5 SHA-256FinalityCommitteeRootMerkle proofs, hash-to-G1, pairing) chainingE_anchor_root → handoffCert.NextFinalityCommitteeRoot, (iii) verifiestargetCertBLS12-381 dual supermajority at canonical checkpoint height (h % 30 == 0orh_trans), and (iv) verifies the 3proof-format.mdV1 SHA3-256 SMT paths (PegOutRecord,BatchCommitmentV3,ResolutionSeenByOutboxId). (Note perR6-H1: transition-height handoff validity is enforced economically by Zenon's historical-rootSubmitInvalidCertProofCase A inspec/04 §3.3, NOT by an in-circuit oracle forh_trans(E+1)orRoot(E+1)!CarryOverCertificateis DELETED.) - Outer Groth16 BN254 Wrapper: Verifies ONLY the inner STARK receipt (
ASSUMED TARGET: ~3.5MR1CS constraints),vk_bitvmpinned inreleaseAdapterRef, Phase-2 CRS ceremony (K >= 50, Assumption #5).
- Inner STARK / zkVM (BLS12-381 + SHA3-256 Precompiles): Executes ALL heavy cryptography inside the inner STARK (
3. Tier 1A: 4-Key Registry, Closed Lifecycle, Normative 30-Day Rotation & Ceremony
3.1 Explicit 4-Key Registry (R5-L5, R5-L8)
| Key | Construction & Holders | Generation & Signing Epoch | Deletion / Lifetime | Exact Scope & Blast Radius |
|---|---|---|---|---|
CommitteeIdentityKey | N-of-N MuSig2 over Setup Committee (N >= 7, distinct from Q_graph, Assumption #4) | Long-lived per binding (rotated via migration) | Long-lived | Authorizes DepositTx Leaf A (RolloverTx_d), verifies Q_graph release transcripts, and signs BTC_LOCK_PROOF, OPERATOR_ROUND_REGISTERED, and VAULT_GRAPH_EPOCH_ADDED. All-$N$ compromise allows diverting new deposits, registering phantom rounds inflating G-21, attesting fake takeTxidsSmtRoots delaying raw-sweep halts by 230 blocks, or activating quarantined vaults with invalid graphs; cannot spend existing vaults. |
Q_graph | N-of-N MuSig2 over Verifier Committee (N >= 7, qGraphXOnly in releaseAdapterRef, Assumption #2) | Long-lived per binding | NEVER deleted | Controls key-path-only Q_vault_d & Q_rec_d, Conn_A/Conn_B/Conn_C L1 (Take1/Take2), ReimburseEscrow L2 & BondOut L3 (WrongDeposit^{T1,T2}), and signs canonical Take release transcripts (R5-L8). All-$N$ compromise compromises live vaults; permanent loss of 1-of-N stops future rotations & recovery re-graphing. |
Q_round_{m,l,r} | N-of-N ephemeral MuSig2 fresh per round (m, l, r) | Generated at Round-Chain Setup | PERMANENTLY DELETED after Round-Chain Setup! | Guards ChallengeTx, AssertStart/CertDA/Chunk/End, BurnBond*, DisproveTx, RoundKickoffTx_{r+1}, RoundRetireTx, StaleConnB/CKillTx, StaleChainBurnTx. |
pk_m | Operator m's HSM key (M >= 5) | Long-lived per operator | Live | Co-signs round setup, Take1/Take2, WrongDeposit^{T1,T2} (Phase 1 FIRST!), <pk_m> CPFP anchors, ReimburseEscrow L1, and post-expiry fee-UTXO reclaim. |
3.2 Closed Lifecycle, Staggered CLTVs & Normative 30-Day Rotation Schedule (R5-H3, R6-M2, R6-L4, R6-L6, R6-L8, R6-L9)
- Globally Unique
roundId& Exact Epoch Alignment (R6-L2,R6-L6):roundId : u32 = (roundChainEpochId[12b] << 20) | (laneIndex[4b] << 16) | roundIndexInLane[16b], definingroundChainEpochId == E_anchor < 4096and enforcinganchorExpiryTs == finalityEpochStartTs(roundChainEpochId) + 58 days(anchorCutoffTs == anchorExpiryTs - 12 days) by exact equality in BOTH Settlement andd_btc_asset! - Staggered
46d / 56d / 58dTimelocks & Slow-Block Tolerances (R5-L3,R6-L8, Asserted in Oracle §4D):- Each lane has
R = 8rounds (T_bond_cooldown = 792blocks =5.5d⇒44.0d <= 46.0d), anchored atE_anchor_ts(g) = finalityEpochStartTs(E_anchor(g)). T_kickoff_cutoff(g) = E_anchor_ts(g) + 46 days(= T_bond_expiry(g) - 12 days, stored on BOTH Settlement & domainOperatorBondRecord!).ClaimReimbursementSlotenforces serial reachability (max(now, lastClaimedTs + 5.5d) <= T_kickoff_cutoff(g)), guaranteeing an honest challenged operator unlocksTake2by<= day 51.0(5.0dbeforeT_kill_expiry = day 56), settles escrow by<= day 51.5, and has6.5full days (936blocks,[day 51.5, day 58)) to retire its bond viaRoundRetireTx! (Slow-block tolerance disclosed perR6-L8:Take2remains safe up to1.476xaverage block intervals and retirement up to1.591x; sustained slower block production is an explicit impairment trigger under §5 #1!)T_kill_expiry(g) = E_anchor_ts(g) + 56 days(OP_CLTVonConn_BL4 &Conn_CL4): KillsTake1/Assert/Take22full days (288blocks> 72-block escrow trap!) BEFOREStaleChainBurnTxunlocks — preventing trap pre-emption (R5-L3)!T_bond_expiry(g) = E_anchor_ts(g) + 58 days(OP_CLTVonGenesisBondL3 &BondOutL5): Burns any unretired stale bond (1.85 BTCburn,1.85 BTCwatcher) AND unlocks operator reclaim on unusedRoundFeeUTXO/AssertFeeUTXO(R5-L4).
- Each lane has
- Normative 30-Day Generation Rotation Schedule (
R5-H3,R6-M2,R6-L4,R6-L9):- At
E_anchor_ts(g) + 30 days, the new 30-day finality epochE_anchor(g+1) = E_anchor(g) + 1begins. - By
E_anchor_ts(g) + 32 days(target day30, deadline day32), Operators &Q_graphMUST register generationg+1(E_anchor_ts(g+1) = E_anchor_ts(g) + 30d,T_bond_expiry(g+1) = day 88) via authenticatedOPERATOR_ROUND_REGISTERED(0x0B). Every new deposit created afterg+1registration MUST carry ag+1graph (R6-L4). Simulated over[0, 180]days (Oracle §4D), at most2generations ever overlap (37.0 BTCsteady-state,74.0 BTCpeak during the8–28day handoff)! - Between day
32and day43(3full days beforeT_kickoff_cutoffand5.5days before quarantine unlocks, accommodating60hbatch finalization —R6-L4!), for EVERY live vault (UNASSIGNED,ASSIGNED,QUARANTINED, AND un-claimedRELEASEDvaults whereReimbursementRoundId == 0—R6-M2), Operators execute Phase 1 (WrongDeposit^{T1,T2}ong+1),Q_graphexecutes Phase 2 + signs the canonical sorted Take release transcript + publishes Take-txid leaf DA (R6-L5), and Setup Committee (CommitteeIdentityKey) verifies the transcript and submitsVAULT_GRAPH_EPOCH_ADDED(0x0D) adding{g+1, eligibleBitmask_{g+1}, takeTxidsSmtRoot_{g+1}}alongside epochg(strictly rejecting duplicate or 3rd unexpired epochs!). - Missed-Rotation Quarantine Rule (
day 48.5 = T_kickoff_cutoff + 60h,R6-L3,R6-L4): AnyUNASSIGNEDorASSIGNEDvault lacking an epoch-g+1graph oncenow >= T_kickoff_cutoff(g) + 60 hours(allowing any day-430x0Dto finalize cleanly!) is transitioned toQUARANTINED (reason = UNROTATED)via permissionlessQuarantineExpiredVault(outpoint)(unrotatedVaultCount++), pausing newMINTED_LOCK_V1mints (deferring toDeferredLockQueue) untilSyncVaultGraphEpochrestores those vaults (unrotatedVaultCount--) or Governance initiates Wind-Down!
- At
- Latency-Aware & Reservation-Aware Dynamic Reachable Capacity (
G-21,R6-M2,R6-L9):- Define
T_release_horizon = 4h (slot) + 2.33h (K=14) + 60h (batch+session) + 5.67h margin = 72h = 3.0 days. ReachableRounds(m, e, l, t_eval) = 0if lane retired (0x10) ormax(t_eval, nextEligibleKickoffTs) > T_kickoff_cutoff(e); elsemax(0, min(unused, floor((T_kickoff_cutoff(e) - max(t_eval, nextEligibleKickoffTs)) / 5.5d) + 1) - pendingReservations(m, e, l)).- Evaluated at
t_eval = now + T_release_horizoninRequestPegOut,ClaimFrontingSlot, ANDMINTED_LOCK_V1! - Disclosed Periodic Pre-Epoch
DeferredLockQueueWindow (R6-L9, Verified in Oracle §4D 180-Day Sim): At15 BTCmax supply (G-21threshold15 + 25 = 40reachable rounds), gengalone stays>= 40through day26.5; during the~5.0-day window (day 26.6 .. 32.0) before geng+1registers (minimum30 >= 15supply,< 40margin), newMINTED_LOCK_V1mints smoothly queue inDeferredLockQueueand immediately drain once geng+1registers (>= 110rounds)! Peg-outs remain 100% open throughout (30 >= 15)!
- Define
3.3 Normative Two-Phase Ceremony & Mandatory 2-Input Rollover
- Phase 1: Operators sign BOTH
WrongDepositDisproveTx^{T1}andWrongDepositDisproveTx^{T2}FIRST and submit validpk_msigs toQ_graph. - Phase 2: Only for Phase-1-compliant operators does
Q_graphreleaseTake1/Take2sigs, publish the canonical sorted Take-txid leaf list (takeTxidsBlobHashDA —R6-L5), and sign the release transcript (takeTxidsSmtRoot). Setup Committee verifies the transcript & leaf DA, signsBTC_LOCK_PROOF(CommitteeIdentityKey), and broadcasts mandatory 2-inputRolloverTx_d(nSequence = 0xfffffffd). If unconfirmed byh_dep + 120, Reserve (watched by Reserve-liveness monitor) MUST double-spendIn 1, with depositor Leaf-B RBF fallback ath_dep + 144.
3.4 Complete Closed-Lifecycle, Staggered-CLTV BitVM2 DAG
(Relay policy — Gate G-1: Fee bumping of non-TRUC v2 parents via <pk_m> 330-sat CPFP anchors relies on Bitcoin Core v28+ 1p1c package relay, verified on Signet in Stage 0C.)
| Tx Name | Signer Set & Signing Epoch | Fee Source (@ 500 sat/vB) | Exact Inputs (Outpoint, nSeq/nLockTime, Sighash) | Exact Outputs (Index, Fixed Value, Tapscript Leaves) |
|---|---|---|---|---|
RolloverTx_d | CommitteeIdentityKey (Phase 2, after Q_graph transcript!) | Mandatory Reserve In 1 + Reserve CPFP Out 1 (<= 0.005 BTC) | In 0: DepositTx:depVout (0xfffffffd, Leaf A)In 1: Mandatory Operations Reserve fee UTXO | Out 0: TerminalVaultUTXO_d (1.0000 BTC, key-path-only Q_vault_d)Out 1: Reserve change (CPFP) |
RoundGenesisTx_{m,l} | Operator m + Q_round_{m,l,0} (Round Setup) | Operator funding inputs | Operator 3.70 BTC bond + fee UTXOs | Out 0 (GenesisBond 3.70 BTC): L1=RoundKickoff_{0}; L2=<Q_round_0> CSVFY <pk_m> CS (RoundRetireTx_{init}); L3=<T_bond_expiry=58d> CLTV <Q_round_0> CS (StaleChainBurn_{init})Out 1..R: RoundFeeUTXO / AssertFeeUTXO (L1=<Q_round> CSVFY <pk_m> CS; L2=<T_bond_expiry> CLTV <pk_m> CS reclaim — R5-L4) |
RoundKickoffTx_{m,l,r} (r=0..7) | Q_round + pk_m (Round Setup, deleted!) | RoundFeeUTXO + Out 3 <pk_m> CPFP (<= 0.010 BTC) | In 0: Prior BondOut L2 (nSeq=792 for r>0, SIGHASH_ALL; per-field checksummed OP_HASH160 w=4 W-OTS W_kick)In 1: RoundFeeUTXO (SIGHASH_ALL) | Out 0 (Conn_A, 330): L1=<144> CSV <Q_graph> CSVFY <pk_m> CS (Take1); L2=<Q_round> CSVFY <pk_m> CS (ChallengeTx)Out 1 (Conn_B, 330): L1=<144> CSV <Q_graph> CSVFY <pk_m> CS (Take1); L2=<Q_round> CSVFY <pk_m> CS (AssertStart); L3=<288> CSV <Q_round> CS (BurnBond); L4=<T_kill_expiry=56d> CLTV <Q_round> CS (StaleConnBKill)Out 2 (BondOut, 3.7000 BTC): L1=<Q_round> CS (BurnBond*/Disprove); L2 (r<7)=<792> CSV <Q_round> CSVFY <W_kick_{r+1}> <pk_m> CS (RoundKickoff_{r+1}); L3=<Q_graph> CSVFY <pk_m> CS (WrongDeposit^{T1,T2}); L4=<792> CSV <Q_round> CSVFY <pk_m> CS (RoundRetireTx); L5=<T_bond_expiry=58d> CLTV <Q_round> CS (StaleChainBurn)Out 3: <pk_m> CPFP (330 sats) |
RoundRetireTx_{m,l,r} | Q_round + pk_m (Round Setup, deleted!) | 99,670-sat base + Out 1 <pk_m> CPFP (<= 0.005 BTC) | In 0: BondOut L4 (nSeq=792, SIGHASH_ALL) (or GenesisBond L2, no CSV) | Out 0: Operator m <pk_m> (3.6990 BTC)Out 1: <pk_m> CPFP (330 sats) |
StaleConn{B,C}KillTx (56d) & StaleChainBurnTx (58d) | Q_round (Round Setup, deleted!) | Watcher In 1+ (~150 vB fee) for Kill; Out 1 (1.85 BTC) for Burn | • StaleConn{B,C}Kill (nLockTime=56d): In 0 = Conn_B/C L4 (SIGHASH_SINGLE|ACP) + Watcher In 1+• StaleChainBurn (nLockTime=58d): In 0 = BondOut L5 (SIGHASH_SINGLE no ACP) | • Kill: Out 0 = OP_RETURN "STALE" (0 sats; locks out Takes 2d > 72 blks before bond burn!)• Burn: Out 0 = OP_RETURN Burn (1.8500 BTC), Out 1 = Watcher (1.8500 BTC - fee) |
Take1Tx_{d,m,l,r} | Q_graph + pk_m (Phase 2) | 1,330-sat base + Out 2 <pk_m> CPFP (<= 0.005 BTC) | In 0: RolloverTx_d:0 (SIGHASH_ALL); In 1: Conn_A L1 (144); In 2: Conn_B L1 (144) | Out 0: ReimburseEscrow^{T1} (99,899,000 sats): L1=<72> CSV <pk_m> CS; L2=<Q_graph> CSVFY <W_outpoint != outpoint_d> (WrongDeposit^{T1})Out 1: Reserve (100,000 sats); Out 2: <pk_m> CPFP (330 sats) |
ChallengeTx_{m,l,r} (Terminal Sink!) | Q_round + pk_m (Round Setup, SIGHASH_SINGLE|ACP) + Watcher | Watcher In 1+ (<= 0.010 BTC) | In 0: Conn_A L2 (SIGHASH_SINGLE|ACP); In 1+: Watcher (1.45 BTC + fee) | Out 0: Operator m (F_assert_fixed = 1.4500 BTC) (ZERO pre-signed descendants!) |
BurnBond*Tx | Q_round (Round Setup, deleted!) | Deducted from Out 1 (<= 0.005 BTC) | In 0: BondOut L1 (3.70 BTC, SIGHASH_SINGLE no ACP)In 1: Timeout leaf (288/72/216), SIGHASH_NONE no ACP | Out 0: OP_RETURN Burn (1.8500 BTC)Out 1 (watcher-added): Watcher (1.8500 BTC - fee) |
AssertStartTx → Parallel AssertCertDATx (29,882 vB → 30 kvB, 3 inputs) + AssertChunkTx_{1..32} → AssertEndTx | Q_round + pk_m (Round Setup, deleted!; 220 + 30 = 250 kvB combined) | AssertFeeUTXO + per-tx <pk_m> CPFP anchors on AssertStart, AssertCertDA, EVERY AssertChunk_i, and AssertEnd funded JOINTLY by F_assert = 1.45 BTC | • AssertStart: In 0 = Conn_B L2 (SIGHASH_ALL) → 3 + 32 outputs (L1=<Q_round> CSVFY <pk_m> CS, L2=<72> CSV <Q_round> CS) + Out cp <pk_m> CPFP• AssertCertDA (3 stack-safe inputs [393, 444, 402] <= 492): 7 per-block checksummed OP_HASH160 w=4 W-OTS blocks (W_blk_0..6, fixed 408 B targetCert||handoffSlot) + 6 midstates (W_mid_1..6, 1,239 digits total) → Out 0 (L1/L2) + Out 1 <pk_m> CPFP• AssertChunk_{1..32}: W-OTS Groth16 intermediates → Out 0 (L1/L2) + Out 1 <pk_m> CPFP• AssertEnd: In 0..32 (SIGHASH_ALL) | AssertEndTx:0 (Conn_C, 330):• L1: <144> CSV <Q_graph> CSVFY <pk_m> CS (Take2Tx)• L2: <216> CSV <Q_round> CS (BurnBondTake2Tx)• L3A ( 1 leaf): <Q_round> CSVFY <Per-Field Kickoff-to-SNARK Binding> (hardcoded (operatorId_m, roundId, E_anchor_root))• L3B_0..6 ( 7 leaves, <= 265 digits/leaf): <Q_round> CSVFY <Complete-Checksummed Block+Midstate SHA-256 Compression Check> (SHA256(mid_j, blk_j) != mid_{j+1})!• L4: <T_kill_expiry=56d> CLTV <Q_round> CS (StaleConnCKill)• L5..1204 ( 1,200 leaves; total C = 1,208): <Q_round> CSVFY <Groth16 Chunk Verifier> (<= 95 kvB ASSUMED TARGET)AssertEndTx:1: <pk_m> CPFP (330 sats) |
Take2Tx_{d,m,l,r} | Q_graph + pk_m (Phase 2) | 1,000-sat base + Out 2 <pk_m> CPFP (funded JOINTLY by F_assert) | In 0: RolloverTx_d:0 (SIGHASH_ALL); In 1: Conn_C L1 (144, SIGHASH_ALL) | Out 0: ReimburseEscrow^{T2} (99,899,000 sats): L1=<72> CSV <pk_m> CS; L2=<Q_graph> CSVFY <W_outpoint != outpoint_d> (WrongDeposit^{T2})Out 1: Reserve (100,000 sats); Out 2: <pk_m> CPFP (330 sats) |
DisproveTx_{m,l,r,c} | Q_round (Round Setup, deleted!) + Watcher witness | Deducted from Out 1 (<= 0.475 BTC) | In 0: BondOut L1 (3.70 BTC, SIGHASH_SINGLE no ACP)In 1: Conn_C Leaf c (SIGHASH_NONE no ACP) | Out 0: OP_RETURN Burn (1.6500 BTC)Out 1 (watcher-added): Watcher (2.0500 BTC - fee) |
WrongDepositDisproveTx^{T1,T2}_{d,m,l,r} | Q_graph + pk_m (Phase 1 FIRST!) + Watcher W_outpoint witness | Deducted from Out 2 (<= 0.015 BTC) | In 0: Take1:0 (T1) OR Take2:0 (T2) (99,899,000 sats, SIGHASH_SINGLE no ACP → locks Out 0)In 1: BondOut L3 (3.70 BTC, SIGHASH_SINGLE no ACP → locks Out 1) | Out 0: RecoveryVaultUTXO_d (99,899,000 sats to Q_rec_d — inserted QUARANTINED until re-graphed)Out 1: OP_RETURN Burn (2.7000 BTC)Out 2 (watcher-added): Watcher (1.0000 BTC - fee) |
3.5 Parametric Integer-Satoshi Economics & Altruistic Watcher Reality (Asserted in scripts/verify_spec_bounds.py §4B)
Derived in exact integer satoshis from Assert (220 kvB) + Derived CertDA+Midstates (30 kvB) + Take2+CPFP (1 kvB) = 251 kvB (1.2550 BTC @ 500 sat/vB) ⇒ F_assert = 1.45 BTC (break-even 289.0 kvB, +39.0 kvB / +15.6% headroom!), DisproveBurn = 1.65 BTC, TimeoutBurn = 1.85 BTC, OperatorRoundBond = 3.70 BTC, WrongDepositBurn = 2.70 BTC:
| Fee Rate | Uncontested Watcher (Dis / TO / Sub) | Realistic Watcher vs Self-Slasher / MEV | Fraud Op (100% Self-Slash) | Honest Challenged Op (Joint Assert+DA+Take2) |
|---|---|---|---|---|
1 sat/vB | +0.5990 / +0.4000 / +1.0000 | -1.4500 BTC (altruistic) | -0.20 / -0.40 BTC | +1.4475 BTC |
50 sat/vB | +0.5515 / +0.3985 / +0.9985 | -1.4510 BTC (altruistic) | -0.37 / -0.40 BTC | +1.3245 BTC |
200 sat/vB | +0.4060 / +0.3940 / +0.9940 | -1.4540 BTC (altruistic) | -0.89 / -0.40 BTC | +0.9480 BTC |
500 sat/vB | +0.1150 / +0.3850 / +0.9850 | -1.4600 BTC (altruistic) | -1.93 / -0.41 BTC | +0.1950 BTC |
- Quantified Operator Bond & Capital:
OperatorBond_ZNN >= 31,500 ZNN/op (weekly Governance cadence) +500 ZNNforfeitableSlotBondZnn,37.0 BTCsteady-state BTC bonds (74.0 BTCpeak8–28-day overlap),1.46 BTC/lane altruistic watcher liquidity (14.60 BTCall 10 lanes). - Retail
< 1.0 BTCRouting: Peg-free PTLC/LN gateways (spec/03 §5).
4. Tier 1B (Optional Class R Escrow) & Tier 2 (Research Target)
- Tier 1B (Portal V2 Class R): Separate binding + expiring/non-fungible
AssetID;deposit_key_point = frost_epoch_key + H_{"zBTC/PortalDepositKey/v1"}(frost_epoch_key || deposit_id)*G; key pathMuSig2([deposit_key_point, pk_u]); Leaf 1 Schnorr adaptor; Leaf 2 unconditional CLTV depositor exit. - Tier 2 (Research Target — M-12): Future batched / UTXO-set Bitcoin covenant once soft-fork opcodes activate (non-normative).
5. Permanent Failure & Wind-Down Plan (All 11 Items)
- Impairment Triggers: Confirmed unauthorized vault spend (SMT-verified raw sweep on
ACTIVE/RELEASED/QUARANTINEDOR expiredPENDING_TRAPvia0x0F),> Kreorg orphaning admitted event,SubmitInvalidCertProof/SubmitEquivocationProoffiring, sustained fee> 500 sat/vBfor> 72blocks or sustained slow Bitcoin blocks> 1.476xnominal (R6-L8) or Reserve< 7 daysburn, missed generation rotation pastT_kickoff_cutoff + 60h, or100%of operators offline> 144blocks. - Pause Scope & Prohibitions: Freeze dispatch (
RelayClaim) + stopRolloverTxsigning; keepSubmitInput,SubmitBatch,Challenge*,FinalizeBatch, andRequestPegOutOPEN. Never fabricateRELEASED/REFUNDED, reset replay, or add custodial sweep keys. - Reproducible Incident Snapshot (U-14):
H_pause,StateRoot,B/R/P,PENDING PegOutRecords,VaultUtxoSet(incl.PENDING_TRAP,QUARANTINED,ORPHANED),ProcessedClaim,ProcessedForeignEvent, destination replay keys, BTC tip, Reserve balance. - Recovery & Explicit Exclusions (C-07): Zero custodial sweep leaf. Surviving operators continue redeeming vaults graphed into reachable fresh rounds (
G-21). Vaults whose operators permanently lose keys or miss rotation beforeT_kill_expiryenter Wind-Down Allocation (#8). - Component Loss: Loss of
>= 1Q_graphmember stops new rollovers, rotations, and recovery re-graphing; existing vaults remain redeemable through reachable active rounds prior toT_kickoff_cutoff. Executor loss recovered permissionlessly. PENDING& Supply Treatment: Resolve strictly viaFOREIGN_RELEASEorFOREIGN_NON_DELIVERY;RequestPegOutstays open duringDRAINING.- Redemption Priority & M0: FIFO while healthy; immediate M0 downgrade on any trigger.
- Shortfall Allocation: Voluntary audited Wind-Down Claim Contract distributing verified remaining reserves (and Governance-released
ORPHANEDvaults) pro-rata; zero silent socialization. - Public Reporting: Machine-readable Proof-of-Reserves within
6hof pause and every24h. - Retirement: Complete ONLY when
P == 0,R == 0,B == 0, and all replay sets permanently retained. - Stage 0C Signet Drills (
G-1,G-2,G-22,G-23): Publish Signet txids, 1p1c package-relay logs, & measured weights (incl. Leaf-3B SHA-256 script size<= 380 kWU, peak stack<= 1,000, and GPU prover time<= 15 min) for 2-in rollover,RoundKickoffTx,RoundRetireTx, staggeredStaleConnB/CKillTx(56d) &StaleChainBurnTx(58d),Take1Tx+CPFP,ChallengeTx→AssertCertDATx+AssertChunk→Take2Tx+CPFP (BOTH 1-cert zero-handoff-slot AND 2-cert —R6-M1),DisproveTx(incl. Leaf-3B SHA-256),BurnBond*Tx,WrongDepositDisproveTx^{T1,T2}, and MUST-fail vectors (standalone connector/trap spend, Take2 substitution, spend proof omitting inclusion proof on registered Take ⇒ rejected/no halt, rotated gen-g+1Take ⇒PENDING_TRAP, kickoff pastT_kill_expiry, forward-hashed digit on an honest Leaf-3B block ⇒ rejected (R6-H2), double-claim, wrong-epoch reimbursement claim).
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.