~/bitcoin-payments/spec
[llms.txt][github]

v2 (v3.1.0-rfc) · public rfc · zero-federation · not mainnet-active

[changelog]

zBTC: Bitcoin–Zenon Interoperability Protocol Specification

Normative zero-federation master specification (v2 / v3.1.0-rfc, R8-hardened — redlines directly against archived v1 / v3.0.0-rfc).

Version: v2 (v3.1.0-rfc — Zero-Federation Phased Architecture, R8 Hardened: Stage 0 Verify Bitcoin SPV + Non-Custodial PTLC/LN → Stage 1A Right-Sized BitVMX n=8 Sovereign ZK Validity Rollup | Stage 1B clArk Alternative Gate → Stage 2 Zero-TTP Scale & Upgrade; remediates Consolidated Hostile Review R8 of archived v1 / v3.0.0-rfc and supersedes archived v0 / v2.5.0-rfc, see CHANGELOG.md)
Status: Public Request for Comment (v2 / v3.1.0-rfc) — NOT mainnet-active; Stage 0 gated on upstream go-zenon release (0aa299e + #239/#299/#312 closure + mainnet PTLC PR #138 & DynamicPlasmaSpork activation with full SetPlasmaVariables pinning — Gate G6); Stage 1A gated on Bitcoin Core >= 29.0 (v31.0 preferred) Signet execution (Gate G1), compiled RV32IM wrapped-SNARK verifier ELF proof (Gate G2), extended checker (Gate G3), formal verification & Bitcoin Core differential fuzzing (Gate G4), vault-bundle disaster-recovery drill (Gate G5), independent third-party cryptography/Bitcoin-Script audit (M-15), graduated TVL ramps (2 → 5 → 15 BTC), and hard-BTC operator/verifier capital commitment.
Target Networks: Bitcoin Mainnet TODAY (bip-0141/bip-0340/bip-0341/bip-0342/bip-0431 Taproot + TRUC v3 + 0-sat P2A ephemeral dust on Bitcoin Core >= 29.0, v31.0 preferred — zero Bitcoin soft forks, zero federated signers) ↔ Zenon Network (go-zenon first tagged mainnet release containing 0aa299e, #239/#299/#312 closed, DynamicPlasmaSpork & PtlcSpork PR #138 enforced; local reference clone master e8986a6 / origin/dev 770e893)
Consistency & Bounds Checker: All modeled n = 8 BitVMX W-OTS/TRUC v3 weights, acyclic vault_id 256-bit Lamport TakeTx stack/size bounds, widened timelock ordering ([0, 144] → 1,584 < 1,728 < 1,872 < 2,016), native-L1 Stake_r verifier positive-EV matrices (including 16.53 kvB P2A CPFP, 0.00285 BTC lockup, 30% zBTC crisis discount, 500–750 sat/vB, k_collude = 0..6), $2^M$ Hall's Marriage recoverability checks, cyclic (H(exitId)+r) mod M priority permutations, {0.50, 0.25, 0.25} BTC bank-run exit bounds, K >= 18 unpublished-fork heuristic & Budish flow-cost sensitivity, 1-/2-block coinbase midstate SHA-256 padding, honest 8 MiB go-zenon Plasma bounds vs Bitcoin L1 0x02 physical DA ceilings, Erlang-verified PTLC (>= 48h) and LN HTLC (>= 24h) 2.3× slow-block tail bounds, clArk exit weights, and a non-no-op randomized state-machine simulation with explicit AssignedObligations (A) conservation (V_unassigned + V_assigned = C + L + E + R + A + B), AdmissionTicketUTXO cap exclusion, concurrent k = 20 ExitSlotUTXO grief bursts, TransferCredit, real Bitcoin reorgs, and Lamport equivocation slashes are asserted by scripts/verify_spec_bounds.py (python3 -I scripts/verify_spec_bounds.py). This script checks internal mathematical consistency against explicitly labeled SOURCED_, POLICY_, and PRE_MAINNET_TARGET_ inputs; it is not an empirical Signet benchmark or audit.

Upstream Provenance, Pinning & Review Trail:

  • Vision Proposal: https://btc-moonshot.github.io/bigidea/ (see §9 for mandatory claims alignment)
  • Zenon Non-Bridging Thesis: zenon-developer-commons/essays/Verify Bitcoin, Don't Bridge It.md & docs/specs/spv-event-oracle-spec.md
  • Reference Node Codebase: go-zenon (master e8986a6, origin/dev 770e893, target mainnet release tag containing 0aa299e, PR #138, #239/#299/#312)
  • Current v2 (v3.1.0-rfc) Integrity Manifest: generated deterministically at build time in public/raw/SHA256SUMS.txt (R8-L02)
  • Archived Previous Version (v1 / v3.0.0-rfc): Frozen byte-for-byte from commit 6ab3999 in versions/v1/ (SHA-256 verified in CI; current v2 redlines directly against v1).
  • Archived Initial Baseline (v0 / v2.5.0-rfc): Frozen byte-for-byte from commit 7b47b8c in versions/v0/ (SHA-256 verified in CI).
  • Consolidated Hostile Reviews:

1. Executive Summary & Architectural Evolution (v0 → v1 → v2)

1.1 Why v0 Failed — and Why Custodial Federated Multisigs Are Explicitly Rejected

The consolidated hostile review of v0 (v2.5.0-rfc, R7) and subsequent consensus/cryptographic audits established that v0 cannot be patched:

  1. ZNN cannot secure BTC (C-1): Real market liquidity (400k–727k ZNN/BTC, total ZNN market cap ~25–33 BTC) makes v0's 10,500 ZNN/BTC slashing deterrents worth only 1.4–2.6% of stated value (~0.43–0.79 BTC for 21 Pillars against a 15 BTC cap).
  2. Zenon consensus fails at ≤ 49% compromise (C-2, H-1, H-2, H-3): Current go-zenon is longest-chain DPoS with zero slashing, deterministic height-only grindable findSeed, unweighted top-30 groupA sybil amplification, and a 30-Momentum hard rollback cliff (protocol/chain_bridge.go) allowing permanent chain splits at 49%; adding classical BFT (CommitteeRootSpork) breaks BOTH safety and liveness at > 33.3%. Single-key SporkAddress / CommunitySporkAddress can mutate consensus code, and refundable QSR fusion allows whale Dynamic Plasma DoS.
  3. BitVM2 script costs break low-cap economics (C-3, H-4, M-6): Real chunked Groth16 BitVM2 asserts (~1.0–1.3M vB / 4.0–4.8 MB W-OTS) are 4.4–10× larger than v0's 220 kvB, forcing ~13.30–18.175 BTC/lane (~40–91 BTC in bonds even at bare-minimum M = 3–5, L = 1, exceeding ZNN's entire market cap!).
  4. Never-deleted N-of-N Q_graph & CommitteeIdentityKey (C-4, N-2) + fixed 1.0 BTC buckets: Rotating 30-day PoS committee roots forced never-deleted standing keys (sweep-all OR 1-key bricking at day 56), while fixed 1.0 BTC buckets rejected 0.50 and 0.25 BTC exits.

Why v2 explicitly REJECTS custodial k-of-n federated multisigs: Falling back to a custodial k-of-n federated multisig is normatively forbidden in v2. Federated custody:

  • Violates Bitcoin's non-custodial ethos and Zenon's own thesis ("Bridges Are Custody Wearing a Mask" — Verify Bitcoin, Don't Bridge It.md);
  • Fails Bob's partial-recovery test under 49% Zenon compromise (a 49% go-zenon DPoS split breaks cross-signer Zenon state agreement and freezes payouts, while safety depends entirely on trusting external custodians);
  • Fails Mike's zero-signer-cooperation test completely (if federated signers refuse to sign Mike's 0.25 BTC payout, 0 satoshis leave custody; a backup recovery timelock belongs to another custodial multisig and never unlocks while active signers refresh UTXOs).

1.2 Governing Cryptographic & Engineering Boundaries (Proposition 1 & Proposition 2)

Every design decision in v2 is constrained by two formal boundary propositions (detailed in spec/01 §1 and spec/04 §1):

Proposition 1 (Bitcoin Mainnet No-Covenant 4-Way Impossibility — BIP-340/341/342, Zero Soft Forks): On Bitcoin Mainnet today (no covenant opcodes), no protocol can simultaneously achieve: (1) pooled cross-depositor custody (U_A, U_B created at t_0), (2) zero new signatures at t_1 (0-of-N liveness) for an unknown future recipient Mike (P_Mike, 0.25 BTC unknown at t_0) while binding the 0.75 BTC remainder back into custody, (3) zero per-hop key-deletion / statechain trust across prior owners, and (4) non-expiring fungible liquidity. Tapscript lacks output introspection (nValue/scriptPubKey), so any unsigned spend is trivially miner-front-run, while pre-signed transactions at t_0 cannot bind future unknown (P_Mike, 0.25 BTC). Corollary 1B: On Bitcoin Mainnet today, optimistic reimbursement bridges (BitVM2/BitVMX/BitVM3) are strictly bounded by 1-of-N ephemeral setup deletion + challenger/verifier safety + 1-of-M pre-committed operator exit liveness.

Proposition 2 (Young Low-Cap Engineering / Capital / Trust Trilemma — 0 Federation, 0 Soft Forks, ~25–33 BTC ZNN MCap): Under current Bitcoin Script & ZK-proving engineering with zero federated signers, zero Bitcoin soft forks, and 0% ZNN slashing usable (~25–33 BTC ZNN mcap), no current design fits inside 2–20 BTC total hard capital while simultaneously achieving all three of:

  • (A) Instant, non-expiring, fungible cross-depositor zBTC (Alice + Bob → Mike with zero sender-collusion risk),
  • (B) 1-of-∞ permissionless challenging surviving 200–500 sat/vB fee spikes (blocked by current Groth16 BitVM2's ~40–91 BTC bond floor even at M = 3–5, L = 1; future reusable BitVM3-GC reduces on-chain dispute weights substantially but currently carries 1-of-N garbler trust plus 2.2–11.2+ TB one-time off-chain garbled-circuit DA across M × L × R × N rounds — see spec/01 Appendix A.2), AND
  • (C) 0-of-N unilateral arbitrary-amount Bitcoin L1 exit (blocked by Proposition 1; clArk achieves post-round 0-of-N only by sacrificing (A) via discrete expiring VTXOs and pre-round arkoor sender+ASP collusion).

1.3 What v2 (v3.1.0-rfc) Is, Stated Plainly

v2 (v3.1.0-rfc) specifies a zero-federation, zero-soft-fork, zero-ZNN-custody-coupling phased architecture starting from zero custody risk:

  1. Stage 0 (0–6 months, 0 BTC bridge custody risk, 0–5 BTC voluntary LP — Mandatory Start):
    • Ship the Direct-on-L1 Bitcoin SPV Event Oracle (spec/02 §2, strictly Event Validity, zero custody authority, len(strippedTx) >= 65, 1-/2-block coinbase midstate padding) and Erlang-hardened non-custodial PTLC (T_znn >= 48h, automated block-72 RBF watchtowers) / Lightning HTLC (Δ_safety >= 24h) atomic swaps (spec/03 §1, P(tail failure | 2.3× slowdown) < 0.0002, explicitly disclosing conditional atomicity) while building and auditing the Stage 1A Rollup Core + BitVMX-CPU wrapped-SNARK verifier on Signet.
  2. Stage 1 Decision Gate (Explicitly Governed by Hard-BTC Commitment, Engineering Scope & Timeline):
    • Stage 1A — Primary Path for Pooled Fungible zBTC (12–18+ months incl. audit for 4–6 engineers; requires 12.80–18.80 BTC locked protocol capital → 14.75–21.25 BTC full single-dispute operational baseline ≈ 45–85% of ZNN's ~25–33 BTC market cap, plus explicit M-simultaneous-dispute verifier headroom disclosure):
      • Shared Core (0% Zenon Trust — Survives 49%–100% Zenon Compromise): A Bitcoin-Anchored Sovereign ZK Validity Rollup where Zenon is demoted to an untrusted L1-subsidized soft-preconfirmation sequencer (AccountBlock.Data, 28,480 Plasma, 0 sat direct user BTC fee, NOT native ZTS; bounded against 0x02 DA spam via refundable 500-sat new-leaf deposit + <= 1,000 new leaves/6-block epoch cap). Canonical ordering, complete mutated-leaf DA (0x02 BATCH_DA covering Accounts, RollupLocks, and cooperative PendingExits + embedded π_batch, slotted batcher priority), and uncensorable forced inclusion (0x01 FORCED_EXIT, 0x03 FORCED_TRANSFER) live strictly on Bitcoin L1 via full stripped-block (≤ 1,000,000 B) scanning, fail-closed BIP-141 wtxid witness authentication (last 0x6a24aa21a9ed coinbase output), and full stripped-vin tracked-UTXO scanning.
      • Custody Engine (Right-Sized BitVMX, n = 8, M = 3–5, L = 1, N = 7, Bitcoin Core >= 29.0): Open-source BitVMX-CPU (RV32IM) interactive bisection executing strictly a constant-size wrapped SNARK verifier (vk_STF, Gate G2) (~7.44 kvB/prover tx, 100% BIP-431 TRUC v3 with 0-sat P2A ephemeral anchors on Core >= 29.0 + direct-to-miner rails; 76.53 kvB Prover / 16.53 kvB Verifier incl. 10 × 153 vB CPFP; F_chal = 0.40 BTC covering 500 sat/vB sustained, 522 sat/vB break-even; widened T_step = 72 blks → T_take = 1,728, T_cooldown = 1,872, Retire = 2,016). Deleted-key {0.50, 0.25, 0.25} BTC vaults with acyclic pre-funding vault_id (R8-C01), L1 consensus AdmissionTicketUTXO Cap_TVL mutual exclusion (R8-C03), exact $2^M$ Hall's Marriage recoverability (R8-C04), explicit AssignedObligations (A) conservation (R8-C02), native Bitcoin L1 Stake_r verifier payouts (0.15 BTC native BTC to every active honest challenger via ChalPayoutEscrow — 0% zBTC crisis discount, +0.0645 BTC net EV @ 500 sat/vB & +0.0232 BTC @ 750 sat/vB, 890 sat/vB break-even, R8-H02/R8-N05), hard-partitioned B_grief (0.05 BTC) with active-operator-only ExitSlotUTXO (R8-H01), cyclic (H(exitId)+r) mod M priority (R8-M03), and zbtc-vault-bundle-v1 public DA archival (R8-H06). Pre-mainnet maturity explicitly disclosed; Gate G2 evaluates BitVMX-CPU vs BitVM3-GC prior to final freeze.
    • Stage 1B — Explicit Alternative Gate (If Hard-BTC Budget < 10–15 BTC, 3–6 mo Launch Target, or 0-of-N Post-Round Exit Outweighs Pooled Fungibility):
      • Do NOT under-bond BitVMX/BitVM2. Deploy clArk (Second bark / Ark Labs arkd) + Zenon SPV/PTLC (2–5 BTC active ASP liquidity, 0 bonds), explicitly relinquishing global pooled zBTC in favor of discrete expiring VTXOs (disclosing arkoor sender+ASP collusion, automated watchtower refreshes, and log2(N) L1 exit fees).
  3. Stage 2 (12+ months, Zero-TTP Scale & Upgrade — Zero Dead-End User Trap):
    • Deleted-key Stage 1A vaults carry no expiry / no CLTV bricking and drain organically 1:1 to native BTC via 0x01 exits (subject to 1-of-M eligible operator liveness; no deleted-key L1 rollover). Identical-STF BitVMX expansion (M = 5 → 20, L = 1 → 4, K = 42 → 144) uses strictly N-of-N Cohort 1 voluntary handover; changing custody backends (BitVM3-GC / BitVM2 / Appendix A Track B Pure Tier-0 OP_CCV + OP_TXHASH + OP_VERIFY_STARK or OP_CAT Covenant) ALWAYS launches a clean, non-commingled zBTC_v2 instance with zero governance backdoor.

2. Normative Module Map & Authority Precedence

ModuleFileNormative Scope in v2 (v3.1.0-rfc)
MasterSPEC.mdZero-federation phased architecture, Propositions 1–2, end-to-end Bob & Mike traces (§3), honest Threat Model & Privileged Powers Table (§4), go-zenon baseline (§5), Upstream Amendments (§6), Stage 0/1A/1B/2 Decision Gates & graduated TVL ramps (§7), Non-Bridging Alignment & Public Claims (§8–§9), and Written Q&A answering all 12 R8 Questions + R7 summary (§10).
Part 1spec/01-bitcoin-taproot-vault-enforcement.mdHighest Custody Precedence (BTC-BITVMX-V1): Propositions 1–2; acyclic OP_DROP DepositTx + L1 AdmissionTicketUTXO cap exclusion ({0.50, 0.25, 0.25} deleted-key vaults, certBlob = 104 B, opBitmask, $2^M$ Hall's Marriage invariant, zbtc-vault-bundle-v1 public DA); BitVMX-CPU n = 8 wrapped-SNARK verifier bisection (301 W-OTS digits ≈ 7.44 kvB, 20 steps, 76.53/16.53 kvB incl. P2A CPFP, Core >= 29.0, F_chal = 0.40 BTC); widened timelocks ([0, 144] → 1,584 < T_take=1,728 < T_cool=1,872 < Retire=2,016); acyclic vault_id 256-bit Lamport TakeTx (5,922 B script, ~3.14–3.17 kvB); native-L1 Stake_r ChalPayoutEscrow verifier payouts (0.15 BTC native BTC each, >= 0.95 BTC burn, +0.0645/+0.0232 BTC EV @ 500/750 sat/vB); active-op (2M_active+1)-leaf ExitSlotUTXO w/ cyclic (H(exitId)+r) mod M; full operational capital (14.75–21.25 BTC + M-dispute headroom) & 94–104d bank-run math; voluntary unwind circuit breaker (R8-H08); Stage 1B clArk spec; Appendix A (Track B Soft-Fork Covenant + BitVM2/BitVM3 Reference).
Part 2spec/02-btc-authorization-domain-and-spv.mdStage 0 Direct-on-L1 Bitcoin SPV Event Oracle (Event Validity only, len(strippedTx) >= 65, 1-/2-block coinbase midstate SHA-256 final padding, exact ABI/storage-op/dp.MaxContractBlocks = 40 budget) + Stage 1A Bitcoin-L1-Canonical Authorization Domain (0x00..0x07 OP_RETURN "ZBTX" tags, off-chain stripped-block scanner proved by wrapped SNARK vk_STF, fail-closed BIP-141 witness authentication on last 6a24aa21a9ed coinbase output, full stripped-vin scan of tracked UTXOs, complete 0x02 DA schema + slotted batcher priority, K >= 18 unpublished-fork heuristic, interactive heaviest-chainwork comparison, and >= K DEEP_REORG_HALT circuit breaker).
Part 3spec/03-settlement-minted-zbtc-and-feeless-rails.mdStage 0 Erlang-Hardened Non-Custodial PTLC (T_znn >= 48h, block-72 RBF watchtower) & LN HTLC (Δ_safety >= 24h) Swaps + Stage 1A Sovereign Rollup STF F & L1-Subsidized Feeless Zenon Sequencer Rails (explicit AssignedObligations (A) conservation V_unassigned + V_assigned = C + L + E + R + A + B, hard-partitioned B_custody/B_grief, oldest-PendingExit credit priority, TransferCredit & R -> C residual consolidation, MIN_EXIT_SATS = 100,000 sats dust floor, 500-sat new-leaf deposit + 1,000/epoch cap, two-column Zenon TPS vs Bitcoin L1 0x02 DA ceiling) + Stage 1B clArk VTXO Coordination.
Part 4spec/04-bitcoin-anchoring-and-light-client.mdZenon 49% Consensus Reality (go-zenon Code Proof) & Inverted Trust Hierarchy: Proof of DPoS failure at 49% (height-only findSeed, unweighted top-30 groupA, zero slashing, 30-Momentum cliff) and BFT failure at > 33.3%, why Bitcoin L1 ordering + DA + forced inbox achieves 0-of-N Zenon trust (with probabilistic PoW finality at depth K >= 18), and non-custodial light-client UX notes.
Part 5spec/05-go-zenon-upgrade-plan.mdMinimal go-zenon Upgrade Plan & R8 Pre-Mainnet Gates G1–G7: Stage 0 prerequisites (0aa299e tag, #239/#299/#312 closure, mainnet PTLC PR #138 & DynamicPlasmaSpork activation with 5-parameter SetPlasmaVariables pinning, Stage 0 SPV Event Oracle) + zero-hard-fork custody boundary for Stage 1A/1B (SporkAddress cannot steal BTC or censor L1 exits) + Bitcoin Core >= 29.0 (v31.0 preferred) + Gates G1–G7.
Checkerscripts/verify_spec_bounds.pyStdlib-only Python 3 Consistency & Bounds Checker asserting all Stage 0 (exact Erlang tails), Stage 1A (BitVMX n=8, acyclic vault_id, native-L1 verifier EV, $2^M$ Hall, K >= 18 + Budish sensitivity, 0x02 DA ceilings), Stage 1B (clArk), and Proposition 2 bounds + non-no-op randomized state-machine simulation with explicit A conservation, AdmissionTicketUTXO, concurrent k = 20 grief burst, TransferCredit, real Bitcoin reorgs, and slashes.
ChangelogCHANGELOG.mdComplete v1 (v3.0.0-rfc) → v2 (v3.1.0-rfc) (R8 Consolidated Hostile Review Disposition — all 27 findings + verified pushbacks) plus historical v0 (v2.5.0-rfc) → v1 (v3.0.0-rfc) R7 disposition and rejection rationale for custodial federated multisigs.

2.1 Authority & Conflict Precedence (M-13 Fixed)

  1. Bitcoin L1 Consensus & Part 1 Vault Scripts (spec/01, BTC-BITVMX-V1) — non-overridable custody layer. Hard-pinned vk_STF, deleted-key Taproot graphs, AdmissionTicketUTXOs, StakeChain, and ExitSlotUTXO rules cannot be overridden by any Zenon contract, Pillar, or spork.
  2. Bitcoin-L1-Canonical Authorization & Rollup STF (spec/02 & spec/03) — deterministic state transition over Bitcoin L1 blocks (0x00..0x07).
  3. Stage 0 go-zenon Runtime & SPV Event Oracle (spec/05) — governs feeless Zenon sequencing UX and Stage 0 non-custodial SPV/PTLC rails; holds ZERO authority over Stage 1A BTC custody.
  4. Non-Custodial Anchoring & Light-Client Infrastructure (spec/04) — informational/UX layer only.

3. End-to-End Protocol Flows & Hostile Scenario Traces

3.1 Stage 0: Verify Bitcoin (SPV Event Oracle + Erlang-Hardened Non-Custodial PTLC/LN)

Zero pooled BTC custody (0 BTC bridge exposure):

  1. Relayers submit Bitcoin headers and Merkle inclusion proofs (len(strippedTx) >= 65, 1- or 2-block SHA-256 coinbase midstate padding) to the Stage 0 SPV Event Oracle (spec/02 §2), proving Event Validity on the best PoW chain.
  2. Users swap native BTC / Lightning against Zenon assets atomically via BIP-327 Taproot MuSig2 PTLCs (<72> OP_CSV refund leaf, mandatory automated high-fee RBF refund watchtower firing at h_conf + 72, T_znn >= now + 172,800s = 48.0h achieving P(T_72 > 48h | 2.3× slowdown) < 10^{-6} and >= 9.25h tail margin past p99.9 = 38.75h) or SHA-256 HTLCs (hashType = 1, Δ_safety_blocks = 36, outbound Δ_safety_sec >= 86,400s = 24.0h with P(T_36 > 24h | 2.3×) < 0.0002, Hold Invoice rate limits, spec/03 §1). Stage 0 atomicity is explicitly conditional on bounded chain progress and timely refund broadcast.

3.2 Stage 1A: Sovereign ZK Validity Rollup + Right-Sized BitVMX (n = 8, M = 3–5, N = 7)

Flow A — Acyclic Deposit With L1 AdmissionTicketUTXO Cap Exclusion (Alice 1 BTC, Bob 1 BTC, Closes R8-C01, R8-C03, R8-H06)

  1. Alice confirms 1.0 BTC + fee in her own self-custodial staging UTXO U_Alice_wallet (funding_txid:funding_vout, Tapscript OP_DROP <pk_Alice> OP_CHECKSIG). Because funding_txid:funding_vout is already confirmed on Bitcoin L1, each vault's domain-separated identifier vault_id = SHA256("zbtc:vault-id:v1" || funding_txid || funding_vout || vault_vout || amount_sats || opBitmask) is 100% deterministic before Taproot tree construction (completely acyclic — zero SHA256(outpoint_d) cycle!).
  2. Alice prepares DepositTx spending vin[0] = U_Alice_wallet AND denomination-matched AdmissionTicketUTXOs (vin[1] = Ticket_050, vin[2..3] = 2 × Ticket_025) → vout[0..2] = deleted-key vaults {0.50, 0.25, 0.25} BTC (3 vaults/BTC, avg 0.333 BTC, maxVaultDenom = 0.50 BTC) + vout[3] = 69 B OP_RETURN "ZBTX" || 0x00 || recipientAcctHash(32B) || vaultParamsHash(32B). Because DepositTx consumes live L1 tickets, two competing deposits racing across Cap_TVL cannot both confirm on Bitcoin L1 — the loser's DepositTx is rejected by Bitcoin consensus and Alice's BTC never leaves her wallet (R8-C03).
  3. Alice + N = 7 presigners + all online operators (≥ M_min, recorded in opBitmask, checked against the exact $2^M$ Hall's Marriage Invariant R8-C04) presign the TakeTx_{d,j,l,r} graphs (M × L × R = 5 × 1 × 64 = 320 pre-signed TakeTxs per vault ≈ 40 KB, < 100ms MuSig2 ONCE at deposit, each recycling its exact matching AdmissionTicketUTXO at vout[1]) using fresh per-deposit ephemeral keys Q_setup_d = MuSig2(P_{1..N,d}, P_{A,d}).
  4. Each presigner permanently deletes x_{i,d} and signs non-spending identity attestation σ_cert over (txid_dep, Q_setup_d, opBitmask, vaultParamsHash), forming certBlob = σ_cert(64B) || Q_setup_d(32B) || opBitmask(8B) (104 B ≤ 520 B BIP-342 stack limit). The complete zbtc-vault-bundle-v1 (scripts, control blocks, W-OTS/Lamport pubkeys, all presigned TakeTxs) is replicated and cryptographically verified across >= 3 independent public archival mirrors (R8-H06).
  5. Only after verifying all pre-signed TakeTxs, σ_cert, and public bundle replication does Alice delete x_{A,d}, push [sig_Alice, certBlob, script, controlBlock] into DepositTx.vin[0].witness, and broadcast. At K = 18 confirmations, the off-chain ZK prover (verified by vk_STF) scans DepositTx via stripped block + BIP-141 wtxid_dep and credits 1.0 zBTC to Alice (identical for Bob).

Flow B — L1-Subsidized Feeless zBTC Transfers on Zenon (AccountBlock.Data)

  • Signed rollup transfers (~110 B) are submitted in Zenon AccountBlock.Data, paying 0 satoshis direct user BTC fee, 0 burned ZNN/QSR, and 21,000 + 68 × 110 = 28,480 Plasma (14 refundable fused QSR or ~42.7M SHA3-256 PoW hashes at floor price 1,000; ~11.4s soft confirmations). Honest Zenon transport throughput (4.4/8.8 2-blk tx/s, 6.5/12.9 1-blk rollup sends/s, 1,050–1,200 8 MiB ceiling) is paired explicitly in spec/03 §2.2 with Bitcoin L1's hard physical 0x02 mutated-leaf DA ceiling (~166.7 blended 10 vB leaves/s at 100% of all Bitcoin blockspace; ~1.67 leaves/s at 1%) (R8-M08).
  • To prevent zero-cost 0x02 L1 DA griefing (R8-M01), creating a brand-new SMT account leaf locks a refundable 500-sat zBTC leaf deposit (reclaimed on full account closure) and batches enforce a <= 1,000 new leaves per 6-block epoch cap. Deterministic slotted batcher priority (primary = H(btc_block_hash) mod K_batchers, open fallback after 2 blocks) eliminates stale-root 0x02 fee burn (R8-M02).
  • Batch proposers post 0x02 BATCH_DA every ~6 Bitcoin blocks carrying complete mutated SMT leaves (Accounts, RollupLocks, cooperative PendingExits) + succinct embedded proof π_batch. First valid 0x02 matching R_{h-1} in Bitcoin L1 block/tx order wins; wtxid-authenticated malformed batches are deterministically skipped while missing witnesses fail closed (R8-C05).

Flow C — Hostile Trace 1: Bob (1 BTC → 1 zBTC → spends 0.5 → recovers 0.5 BTC Under 49%–100% Zenon Compromise)

  1. Bob deposits 1.0 BTC ({0.50, 0.25, 0.25} vaults) → 1.0 zBTC canonical on Bitcoin L1 at K = 18 confirmations.
  2. Bob spends 0.5 zBTC feelessly on Zenon (retaining 0.5 zBTC). Even if 49%–100% of Zenon Pillars are Byzantine, go-zenon permanently splits across its 30-Momentum cliff, Dynamic Plasma spikes 100,000×, or SporkAddress upgrades go-zenon maliciously: no attacker can forge Bob's signature on his remaining 0.5 zBTC or mutate vk_STF.
  3. Bob bypasses Zenon completely by broadcasting a ~150 vB Bitcoin L1 0x01 FORCED_EXIT (0.50 BTC → P_Bob, grossSats >= MIN_EXIT_SATS = 100,000 sats) creating a 546-sat (2M_active + 1)-leaf ExitSlotUTXO with cyclic operator priority k_r = (H(exitId) + r) mod M_active.
  4. Any 1-of-M (M = 3–5) active operator spends ExitSlotUTXO as vin[0] and pays 0.50 BTC - f_op directly to P_Bob in vout[0] (confirmed in ~1 Bitcoin block / ~10 minutes).
  5. At K = 18, the STF credits ReimbursementCredit[O_j] += 0.50 BTC, FIFO-assigns one 0.50 BTC vault U_d to O_j (moving 0.50 BTC from ReimbursementCredit → AssignedObligations (A) so V_unassigned + V_assigned == C + L + E + R + A + B holds across the 1,728-block gap!), and O_j claims U_d via RoundTx_r → TakeTx (T_take = 1,728 blks, verified by N = 7 pre-committed verifiers under n = 8 BitVMX bisection, recycling Ticket_050).

Flow D — Hostile Trace 2: Mike (Alice 1 + Bob 1 → Mike 2 → recovers 0.25 BTC When Zenon Signers Refuse to Sign)

  1. Alice (1.0 BTC) and Bob (1.0 BTC) deposit into {0.50, 0.25, 0.25} vaults and send 2.0 zBTC feelessly to Mike on Zenon.
    • Once anchored in 0x02 BATCH_DA at depth K = 18, Mike's 2.0 zBTC has probabilistic Bitcoin PoW finality under <50% honest hashrate (immune to 100% Zenon + 100% Alice/Bob collusion; R8-L01).
    • If Zenon Pillars stall or refuse to batch BEFORE 0x02 posts, Mike self-includes Alice's and Bob's raw signed transfers directly on Bitcoin L1 via 0x03 FORCED_TRANSFER! (Pre-L1-batch ~11.4s Zenon confirmation is honestly disclosed as an L1-subsidized soft confirmation; large receipts like 2 BTC wait for L1 batch confirmation.)
  2. Zenon signers refuse to sign everything. Mike ignores Zenon completely and broadcasts L1 0x01 FORCED_EXIT (0.25 BTC → P_Mike, creating ExitSlotUTXO; Mike retains 1.75 zBTC).
  3. Any 1-of-M (M = 3–5) active operator spends ExitSlotUTXO and pays 0.25 BTC - f_op directly to P_Mike in vout[0] (~10 minutes). Alice and Bob cannot front-run or steal it; Bitcoin L1 UTXO exclusion prevents double-fronting.
  4. At K = 18, the STF FIFO-assigns one 0.25 BTC vault to O_j (moving 0.25 BTC into AssignedObligations (A); the remaining 0.75 BTC of Alice's split — 0.50 + 0.25 — stays untouched in deleted-key BitVMX vaults!). For arbitrary non-bucket exits (>= 0.001 BTC = MIN_EXIT_SATS), O_j still pays the exact amount in FrontingTx, accumulates ReimbursementCredit[O_j], and may consolidate < 0.25 BTC residuals via TransferCredit(from_op, to_op, amt) (R8-M04). Oldest-PendingExit credit priority blocks operators from jumping ahead of waiting retail exits via fresh self-fronting (R8-N01).
  5. Fee-spike & grief recovery: If Bitcoin fees spike above f_op, Mike bumps f_op via 0x06 EXIT_FEE_BUMP (or Dutch-auction fee schedule) or cancels after <288> OP_CSV via Leaf 2M_active (EXIT_CANCEL, restoring 0.25 zBTC, NOT native BTC). If a rogue operator sweeps ExitSlotUTXO without paying vout[0] (even in a concurrent k = 20 burst!), the STF atomically refunds 100% of grossSats zBTC to every victim, distributes up to 0.01 BTC/victim (pro-rata capped strictly at O_j's hard-partitioned 0.05 BTC B_grief buffer — zero B_custody overflow!), suspends O_j, and excludes O_j from all new ExitSlotUTXO scripts (R8-H01, R8-N05).

4. Honest Threat Model, Residual Boundaries & Privileged Powers Table (H-3, R8-C06, R8-H03, R8-H08)

v2 Stage 1A (BitVMX Rollup) is trust-minimized (Tier 1), NOT pure Tier 0 (which Proposition 1 proves requires a Bitcoin soft fork — see spec/01 Appendix A). Delivered security is bounded by the following explicit, un-sugarcoated assumptions:

  1. Zero Zenon Consensus or ZNN Market-Cap Trust (0-of-N Zenon — Survives 49%–100% Zenon Compromise): Neither Zenon Pillars, go-zenon DPoS/BFT, ZNN's ~25–33 BTC market cap, nor Zenon SporkAddress sit in the Bitcoin custody safety or L1 forced-exit path. Zenon Plasma DoS temporarily degrades feeless UX to L1 BTC fees (0x03/0x01), never custody.
  2. 1-of-N Ephemeral Setup Deletion & Open-Cohort Attestation (N = 7 Pilot): At least 1 of N presigners honestly deletes its per-deposit ephemeral share x_{i,d} (depositor also participates and deletes x_{A,d}!) AND at least 1 of N long-term attestation keys id_i remains uncompromised while a cohort is open to new deposits. Compromising all N id_i keys cannot sweep existing deleted-key vaults; losing 1 of N id_i never bricks existing vaults (only halts new deposits on v1, requiring a clean non-commingled zBTC_v2).
  3. 1-of-N Pre-Committed Online Verifier Safety (N = 7 Pilot, NOT 1-of-∞): At least 1 of N = 7 independent pre-committed verifiers monitors Bitcoin within [0, 144] blks (~24h) and runs n = 8 BitVMX bisection (20 steps, T_step = 72 blks, 16.53 kvB total verifier weight incl. 10 × 153 vB P2A CPFP on Bitcoin Core >= 29.0 + direct-to-miner backup). Anyone on Earth can detect fraud and alert all 7 verifiers off-chain, and every active honest verifier receives 0.15 BTC in native Bitcoin L1 BTC directly from Stake_r (0% zBTC crisis discount!), yielding +0.0645 BTC net EV @ 500 sat/vB (+0.0232 BTC even @ 750 sat/vB, break-even 890 sat/vB, after CPFP and 0.00285 BTC lockup) even if 6 of 7 verifiers collude with the operator. If ALL 7 verifiers go offline or collude simultaneously during [0, 144], a cheating operator can steal ≤ 0.50 BTC/round. Simultaneous M-operator attacks require 0.483 BTC/lane (1.45 / 2.41 BTC) of liquid standby in at least 1 honest verifier (R8-H02).
  4. 1-of-M Pre-Committed Operator Exit Liveness (M = 3–5 Pilot — Irreducible Corollary 1B Bound, R8-C06): Stage 1A vaults carry no CLTV expiration, but native Bitcoin L1 recovery strictly requires at least 1-of-M active eligible operators (opBitmask satisfying Hall's Marriage Invariant) with liquid BTC to front exits. If 0-of-M operators remain permanently offline (100% permanent disappearance), native BTC remains permanently unrecoverable on Bitcoin Mainnet today (0 theft; EXIT_CANCEL after 288 blocks restores zBTC inside the rollup, NOT native BTC on L1). This is an irreducible no-covenant boundary (Proposition 1).
  5. Sustained Dispute Fee-Rate Envelope (≤ 500 sat/vB for 10.0 Consecutive Days on Core >= 29.0): F_chal = 0.40 BTC covers 76.53 kvB Prover bisection (incl. 10 × 153 vB P2A CPFP) up to 522 sat/vB sustained across all 20 steps (10.0 days); Verifier 16.53 kvB is covered in native L1 BTC (0.15 BTC) up to 890 sat/vB after lockup cost. Historical peaks (1,805 sat/vB April 2024 lasted ~33h ≈ 2–3 steps) fit comfortably; a hypothetical 10-day > 522 sat/vB spike erodes honest prover coverage.
  6. Probabilistic PoW Finality & Conditional Private-Fork Heuristic (K >= 18, R8-H03, R8-M07, R8-L01): Depth K >= 18 provides probabilistic PoW finality under <50% honest hashrate (NOT absolute finality). The inequality 0.50 × K × Subsidy(era) > Cap_TVL_total (Cap_user + M × B_zbtc) is explicitly an unpublished-fork opportunity-cost heuristic (under Budish's winning-fork subsidy offset, a majority-hashrate attacker publishing the winning chain recaptures subsidies and pays net flow/hardware cost κ × K × Subsidy plus external BTC-devaluation cost). Each lane pins (h_lane_init, H, D) with D(h) ≥ 0.50 × D(h_lane_init), supports interactive heaviest-chainwork competing-header comparison inside vk_STF, and enforces a fail-closed DEEP_REORG_HALT circuit breaker with >= 144-block rollback snapshots if a >= K reorg ever occurs.
  7. Immutable vk_STF Bug Risk (R8-H08): Because vk_STF is immutable on existing vaults (zero governance override), a soundness or completeness bug in vk_STF could freeze or threaten active vaults. Mitigated strictly BEFORE mainnet via formal verification & Bitcoin Core differential fuzzing (Gate G4), graduated TVL ramps (2 → 5 → 15 BTC), and a non-custodial voluntary unwind circuit breaker (spec/01 §6.3).
  8. Bank-Run Recycling Queue (~94–104 Days for 100% Run at M = 3–5, L = 1, T_cooldown = 13.0d): While individual exits front in 10m up to available operator float (2.20–3.00 BTC), a 100% bank run recycles at 0.077 BTC/day (M = 3, `101–104dfor10 BTCuser cap) or0.128 BTC/day (M = 5, 94–104dfor15 BTCuser cap) under{0.50, 0.25, 0.25}vaults (or62–68dunder{0.50, 0.50} vaults). Oldest-PendingExit credit priority blocks self-fronting queue jumping (R8-N01), while secondary-market zBTC` discounting during prolonged queues remains an explicit economic risk.
  9. Stage 1B (clArk) Alternative Assumptions (If Chosen Instead): Zero operator bonds and pure 0-of-N post-round unilateral exit until VTXO expiry, BUT sacrifices pooled fungible zBTC, carries hard VTXO expiry (log2(N) L1 branch exit fees, requiring watchtower refresh), requires 100% ASP liquidity per cycle, and exposes pre-round arkoor transfers to sender + ASP collusion.

4.1 Complete Privileged Powers Table (H-3 Closed — ZERO Custodial Authority)

Power / ActionHolderThresholdTimelockMaximum Effect / Blast Radius on Stage 1A BTC Custody
Spend Existing Stage 1A BTC Vaults (U_d)NOBODY (ephemeral Q_setup_d deleted)N/AN/A0 sats custodial sweep power. Spendable ONLY via pre-signed TakeTx after T_take = 1,728 blks subject to N = 7 BitVMX verifiers + Lamport equivocation slash.
Mutate Rollup STF Rules (vk_STF) on Existing VaultsNOBODY (vk_STF hard-pinned at t = 0)N/AN/A0 effect. No Zenon spork, governance vote, or operator can alter STF rules on existing vaults (see spec/01 §6.3 for non-custodial voluntary unwind circuit breaker).
Voluntary Cohort Handover (Same vk_STF Only)Cohort 1 Presigners (id_1..id_N)N-of-N (7-of-7)None (new deposits only)Strictly 1-of-N safe; cannot touch existing vaults. Involuntary 1-of-N loss halts new v1 deposits cleanly (zBTC_v2 required).
Zenon Protocol Sporks (CreateSpork, ActivateSpork, SetPlasmaVariables)SporkAddress (z1qpxsw...) / CommunitySporkAddress (z1qqvwz..., window heights 14,567,887–19,791,986, origin/dev:vm/embedded/definition/spork.go) → future GovernanceContract1-of-1 todaySporkMinHeightDelay = 6 Momentums (node layer)0 BTC custody blast radius in Stage 1A. Can disrupt feeless Zenon sequencing or Stage 0 embedded SPV contract, but cannot steal 1 satoshi from BitVMX vaults or censor L1 0x01/0x03 exits. (Stage 0 pins full SetPlasmaVariables floor in spec/05.)
Operator Fronting & Reimbursement Claim (O_1..O_M)Independent Bonded Operators (M = 3–5 pilot)1-of-M for exit livenessT_take = 1,728 blks; T_cooldown = 1,872 blksZero theft power under 1-of-N verifier honesty (-2.00 to -1.10 BTC L1 loss alone; -2.55 to -1.65 BTC incl. B_custody across k_collude = 0..6); permanent 0-of-M disappearance permanently stalls native BTC exits (0 theft; EXIT_CANCEL restores zBTC only).
BitVMX Fraud Challenge (V_1..V_7)Independent Pre-Committed Verifiers (N = 7)1-of-7[0, 144] blks open; T_step = 72 blksAny 1 honest verifier stops fraud, collects 0.15 BTC native L1 BTC directly from Stake_r (+0.0645 BTC net EV @ 500 sat/vB, +0.0232 BTC @ 750 sat/vB after CPFP & lockup), and forces 0.95–1.85 BTC L1 burn.

5. Reference go-zenon Ground-Truth Baseline (M-3, B1, B2, L-3, R8-M08)

  • Verified Local Clone: master (e8986a6, v0.0.10-alphanet, live mainnet v1 Momentums capped at 100 blocks/Momentum) and origin/dev (770e893, carrying DynamicPlasmaSpork, PtlcSpork, Libp2pSpork). (Note: upstream commit 0aa299e, PTLC PR #138 mainnet merge/spork activation, and open issues #239, #299, and #312 are NOT yet active on go-zenon mainnet and remain explicit Stage 0 upstream release gates — Gate G6.)
  • Stage 0 Hard Preconditions (spec/05): (1) First tagged mainnet go-zenon release containing 0aa299e; (2) closure of upstream issues #239 (FIFO panic-stall deterministic failed receive, B1), #299, and #312; (3) mainnet merge & activation of PTLC PR #138 (PtlcSpork) and DynamicPlasmaSpork with complete 5-parameter SetPlasmaVariables pinning (MaxBasePlasmaInMomentum >= 2,100,000, MaxPriceChangePercent <= 25%, FusedPlasmaTarget >= 525,000, PowPlasmaTarget >= 525,000, PriceChangeDenominator >= 8).
  • Stage 1A / 1B Zero-Hard-Fork Property: Stage 1A Rollup nodes read standard Zenon AccountBlock.Data and Bitcoin L1 — requiring zero go-zenon consensus hard fork beyond Stage 0.

6. Upstream Amendment Register (v2 Zero-Federation Scope)

IDUpstream TargetStatus in v2Normative Requirement
A-SPEC-1, A-SPEC-2, A-SPEC-6Project Zeno optimistic bridge frameworkNot required in v2Stage 0 uses direct Event-Validity SPV; Stage 1A uses Bitcoin-L1-canonical ZK validity (0x00..0x07).
A-SPEC-4Deterministic Exit IDRequired (Stage 1A)exitId = SHA256("ZBTX_EXIT_V1" || bitcoinTxid || voutOrIdx || nonce) derived deterministically on Bitcoin L1; priority sequence uses cyclic permutation k_r = (H(exitId) + r) mod M_active.
A-BTC-1Bitcoin Refund / Exclusion RulesRequired (Stage 1A)Refunds enforced strictly by Bitcoin L1 UTXO exclusion (ExitSlotUTXO spend-or-refund rule) — zero timeout-vs-fronting double-pay races (M-8), hard-partitioned B_grief (0.05 BTC), and active-operator-only Taproot trees (R8-H01).
A-MINT-1TokenContract.IssueMintedRetired in v2Stage 1A zBTC balances live in the Bitcoin-canonical Rollup SMT (NOT pre-minted inside a Zenon embedded contract, eliminating H-8 entirely!).
A-PILLAR-1go-zenon pillars.go BLS12-381 & 72d lockNot required in v2Zenon consensus & Pillar committees are removed from BTC custody completely (spec/04).

7. Phased Delivery, Capital Decision Gates & Zero-Dead-End Growth (M-15, R8-H08, R8-M09)

StageTimeline & Full Hard-BTC CapitalNormative Scope & Blocking Exit CriteriaZero-Dead-End Migration Guarantee
Stage 0 (Mandatory Foundation — Verify Bitcoin)0–6 months, 0 BTC bridge custody risk (0–5 BTC voluntary LP)Ship go-zenon Gate G6 (0aa299e, #239/#299/#312, mainnet PR #138 & DynamicPlasmaSpork 5-param pin), Direct-on-L1 Bitcoin SPV Event Oracle (len(strippedTx) >= 65, 1-/2-block coinbase midstate, ≤ 24 storage ops, dp.MaxContractBlocks = 40), and Erlang-hardened non-custodial PTLC (T_znn >= 48h, block-72 RBF watchtower) / LN HTLC (Δ_safety >= 24h) swaps. Build & benchmark Rollup STF + wrapped SNARK verifier on BitVMX-CPU (RV32IM) and evaluate BitVM3-GC on Signet.Zero custodial BTC at risk while proving every Rollup + BitVMX primitive on Signet.
Stage 1A (Primary Path — Right-Sized BitVMX Rollup)12–18+ months (incl. audit, 4–6 engineers); Locked: 12.80 (M=3) / 18.80 BTC (M=5); Operational Baseline (1 dispute): 14.75 (45–59% ZNN mcap) / 21.25 BTC (64–85% ZNN mcap); Multi-dispute headroom: ~17–26+ BTC (spec/01 §6)Hard Entry Gates G1–G5 + M-15: (G1) Bitcoin Core >= 29.0 (v31.0 preferred) regtest/signet full graph execution incl. AdmissionTicketUTXO & 153 vB P2A 1P1C CPFP; (G2) compiled RV32IM wrapped-SNARK verifier ELF proving init_steps + exec_steps <= 0.5 × 8^9 (else l = 10 or BitVM3 evaluation); (G3) extended verify_spec_bounds.py clean; (G4) formal verification of V=C+L+E+R+A+B, $2^M$ Hall, & BIP-141 completeness + Bitcoin Core differential fuzzing; (G5) zbtc-vault-bundle-v1 disaster-recovery drill; (M-15) independent third-party audit; Graduated TVL ramps: 2 BTC (90d) → 5 BTC (90d) → 10/15 BTC.Non-expiring deleted-key vaults stay redeemable 1:1 via 0x01 FORCED_EXIT subject to 1-of-M operator liveness (plus voluntary unwind circuit breaker in spec/01 §6.3).
Stage 1B (Explicit Alternative Gate — clArk)3–6 months, 2–5 BTC active ASP liquidity (0 bonds)Trigger: Choose Stage 1B ONLY if the ecosystem cannot commit ~14.75–21.25+ BTC of non-yielding hard BTC OR prioritizes 3–6 mo launch / 0-of-N post-round exit over pooled fungibility. Deploy Second bark / Ark Labs arkd + automated watchtowers + Zenon SPV/PTLC (spec/01 §7, spec/03 §3). Do NOT under-bond BitVMX/BitVM2.Users hold self-custodial expiring VTXOs with unilateral L1 exit; explicitly non-commingled with any future Rollup zBTC.
Stage 2 (Zero-TTP Scale & Upgrade)12+ months post-Stage 1 (15–200+ BTC TVL, or unlimited w/ soft fork)(a) Same-STF BitVMX scaling (M=5→20, L=1→4, K=42→144): strictly via pre-planned N-of-N Cohort 1 voluntary handover (zero governance key). (b) Custody backend upgrades (BitVM3-GC / BitVM2 / Appendix A Track B Pure Tier-0 OP_CCV or OP_CAT Covenant): ALWAYS launch a clean, non-commingled zBTC_v2 reusing the open-source Rollup STF codebase.Zero deleted-key L1 rollover needed; Stage 1A vaults drain organically 1:1 to native BTC via 0x01 exits.

8. Alignment with Zenon's Non-Bridging Philosophy (Verify Bitcoin, Don't Bridge It.md)

  • Stage 0 implements Verify Bitcoin, Don't Bridge It.md verbatim: Bitcoin stays strictly in user custody while Zenon imports verified PoW Event Validity and coordinates atomic PTLC/LN swaps.
  • Stage 1A respects the essay's core warning ("Zenon can't prevent spending. That's Bitcoin's job") by refusing custodial federations and refusing to place Zenon consensus in Bitcoin's enforcement path — pushing 100% of custody enforcement, canonical ordering, DA, and forced exits onto Bitcoin L1 (BitVMX + ZK validity).

9. Public Claims Alignment (bigidea Synchronization)

All public materials (including btc-moonshot.github.io/bigidea) MUST match v2 (v3.1.0-rfc) verbatim:

Outdated Public Claim (v0 / v1 / bigidea errata)Accurate v2 (v3.1.0-rfc) Statement
"The network never holds a pooled key" / "100% live forever"True in v2 for existing vault spend keys: per-deposit ephemeral keys Q_setup_d are permanently deleted at deposit (with zero custodial federation). Honest disclosure (R8-C06): Stage 1A vaults carry no CLTV expiration, but native BTC recovery requires 1-of-M (M = 3–5) active eligible operators (0-of-M permanent disappearance permanently locks native BTC; EXIT_CANCEL restores zBTC only), plus 1-of-N (N = 7) open-cohort attestation and 1-of-7 pre-committed online BitVMX verifiers. Pure 0-of-N unilateral exit requires a Bitcoin soft fork (spec/01 Appendix A).
"One honest watcher can stop a bad payout"Clarified for Stage 1A: Any 1-of-7 pre-committed online BitVMX verifier can stop a bad payout with positive native-L1 EV (+0.0645 BTC @ 500 sat/vB, +0.0232 BTC @ 750 sat/vB after CPFP & lockup), and anyone on Earth can detect fraud and relay it to all 7 verifiers. (1-of-∞ permissionless BitVM2 requires ~40–91+ BTC in bonds even at M=3–5.)
Proofs "end at Bitcoin's proof-of-work" / "100% Bitcoin PoW finality"Clarified (R8-L01): Canonical zBTC state ordering, DA (0x02), and forced exits (0x01/0x03) are anchored directly on Bitcoin PoW with 0% Zenon consensus trust, delivering probabilistic PoW finality at depth K >= 18 under <50% honest hashrate (subject to conditional unpublished-fork heuristic and interactive heaviest-chainwork dispute verification).
"Security is funded by the network's own staking token"False — explicitly rejected. ZNN (~25–33 BTC total market cap) is 0% in the BTC custody safety path; all operator/verifier collateral and operational reserves (14.75–21.25+ BTC) are hard BTC.
"Millions of transactions per second"; per-second streamsZenon Dynamic Plasma (~11.4s/Momentum) provides ~4.4/8.8 2-blk tx/s, ~6.5/12.9 1-blk rollup sends/s (2.1M/4.2M), and a ~1,050–1,200 tx/s 8 MiB Zenon transport ceiling — strictly bounded for L1-anchored settlement by Bitcoin L1's 0x02 physical DA ceiling (~166.7 blended 10 vB leaves/s at 100% of Bitcoin blockspace; ~1.67 leaves/s at 1%) (R8-M08).
"0 satoshi fees" / unbounded free transfersL1-subsidized soft preconfirmations (0 sat direct user BTC fee on Zenon AccountBlock.Data, costing 28,480 refundable QSR/PoW Plasma; NOT native ZTS). Creating a brand-new SMT account locks a refundable 500-sat zBTC leaf deposit (<= 1,000 new leaves/6-block epoch) to bound 0x02 L1 DA spam (R8-M01). Deposits, L1 forced exits (0x01), and fronting spreads pay Bitcoin L1 fees.
"Oracle verified"Consistency-checked via scripts/verify_spec_bounds.py against SOURCED_, POLICY_, and PRE_MAINNET_TARGET_ inputs; not empirically audited until Gates G1–G6 & M-15 pass.
Omission of Zenon / ZNN / QSR / Pillars / Core >= 29.0Public pages MUST explicitly name Zenon Network, ZNN, QSR, and Pillars, pin Bitcoin Core >= 29.0 (v31.0 preferred), and disclose BitVMX-CPU's pre-mainnet status (12–18+ mo timeline), 14.75–21.25+ BTC full operational capital, and ~94–104d 100% bank-run exit queue (T_cooldown = 13.0d).

10. Written Answers to Consolidated Hostile Review (R8) & Historical R7 Summary

Every one of the 12 mandatory questions raised in R8 §24 against archived v1 (v3.0.0-rfc) is answered normatively in v2 (v3.1.0-rfc) (with zero federated multisigs; full 27-finding R8 + 31-finding R7 disposition tables live in CHANGELOG.md):

  1. R8-C01 (Circular SHA256(outpoint_d) Lamport cycle): Confirmed & fixed (Amendment A1). Replaced SHA256(outpoint_d) with acyclic pre-funding vault_id = SHA256("zbtc:vault-id:v1" || funding_txid || funding_vout || vault_vout || amount_sats || opBitmask) bound to the already-confirmed U_dep_wallet outpoint (spec/01 §2.2, §3.3). TakeTx is ~3,142–3,166 vB <= 3,200 vB TRUC v3 parent with 258 peak stack and zero unconfirmed TRUC child chaining.
  2. R8-C02 (Missing AssignedObligations (A) in conservation law): Confirmed & fixed (Amendment A2). Added explicit AssignedObligations (A) SMT namespace and amended conservation to V_unassigned + V_assigned = C + L + E + R + A + B with atomic transitions for fifo_assign, take_confirmed, 0x07 release_assignment, disprove_dual_slash, lamport_equivocation_slash (including cross-operator equivocation recovery), retire, and reorg (spec/03 §2.1, verified explicitly in verify_spec_bounds.py across the T_take gap!).
  3. R8-C03 (Deposit race past Cap_TVL burning BTC): Confirmed & fixed (Amendment A3). Enforced Cap_TVL_total mutual exclusion directly at Bitcoin L1 consensus via denomination-matched AdmissionTicketUTXOs (1 × Ticket_050 + 2 × Ticket_025 consumed as DepositTx.vin[1..3] and recycled at TakeTx.vout[1], spec/01 §2.2), plus optional two-stage PreDepositUTXO. Competing deposit losers never spend U_dep_wallet.
  4. R8-C04 (Global round cap violates Hall's Marriage Theorem): Confirmed & fixed (Amendment A4). Mandated the exact $2^M$ Hall's Marriage Invariant across all deposit_admit, operator_retire, round_consume, and operator_slash transitions (<= 31 subset checks at M = 5), tightest-slack FIFO prioritization, and retirement unlock gating (spec/01 §6.2, tested in verify_spec_bounds.py).
  5. R8-C05 (BIP-141 witness completeness, untagged spends, 0x02 DA schema): Partially confirmed & fixed (Amendment A5). While v3.0.0-rfc spec/02:L115 already mandated BIP-141 wtxid verification, v3.1.0-rfc closes all 3 real gaps: (a) extract witness commitment from the LAST coinbase output starting with 0x6a24aa21a9ed (len >= 38 B, coinbase wtxid = 0x00^32) and formally separate fail-closed (REFUSED_DATA_UNAVAILABLE) on missing/unauthenticated witness from deterministic skip on wtxid-authenticated malformed payload; (b) scan every vin of every stripped transaction for untagged spends of tracked protocol UTXOs; (c) expand 0x02 BATCH_DA binary schema to serialize Accounts, RollupLocks, and cooperative PendingExits (spec/02 §3.1–3.2).
  6. R8-H01 & R8-N05 (Concurrent/post-suspension ExitSlotUTXO griefing draining 0.55 BTC verifier pool): Confirmed & fixed (Amendment A7). Hard-partitioned B_grief (0.05 BTC) from B_custody (0.55 BTC) with pro-rata burst capping (0 sats ever debited from B_custody), excluded suspended operators from all new ExitSlotUTXO Taproot trees (2M_active + 1 leaves), AND moved all verifier bounties onto Bitcoin L1 Stake_r (0% coupling to B_zbtc — R8-N05 eliminated completely!).
  7. R8-H02 (Crisis-discounted zBTC verifier payouts, CPFP/lockup EV, M-simultaneous dispute liquidity): Confirmed & fixed (Amendment A7). Restructured DisproveTx_{r,i}/TimeoutSlashTx_{r,i} on Stake_r (2.00 BTC) to pay 0.15 BTC in native Bitcoin L1 BTC to EVERY active honest challenger via 6 ChalPayoutEscrow_{r,j} outputs paired with ChalProofConnector_{r,j} (0.95 BTC minimum immediate burn, zero 2^7 explosion!). Net honest verifier EV including 16.53 kvB P2A CPFP + 0.00285 BTC lockup is +0.0645 BTC @ 500 sat/vB and +0.0232 BTC @ 750 sat/vB (890 sat/vB break-even, 0% zBTC discount!), while combined attacker P&L stays -2.00 to -1.10 BTC on L1 alone (-2.55 to -1.65 BTC incl. B_custody). Multi-dispute verifier liquidity (1.45 / 2.41 BTC per honest verifier across M = 3 / 5 simultaneous disputes) is explicitly budgeted in spec/01 §6.
  8. R8-H05 (RV32IM $8^9$ instruction budget contradiction): Confirmed & fixed (Amendment A9). Clarified normatively across spec/01 §3.2, spec/02 §3.2, and spec/05 §3 that BitVMX-CPU (RV32IM) executes strictly a constant-size wrapped SNARK verifier (vk_STF), NEVER bare 1 MB SHA-256 block scanning; gated Stage 1A on Gate G2 (compiled ELF proving init_steps + exec_steps <= 0.5 × 8^9, else l = 10 or BitVM3).
  9. R8-H03 & R8-M07 (Private-fork bound vs Budish subsidy offset, canonical fork check, >= K reorg): Confirmed & fixed (Amendment A8). Relabeled 0.50 × K × Subsidy > Cap_TVL_total honestly as an unpublished-fork opportunity-cost heuristic (printing Budish net flow-cost sensitivity in verify_spec_bounds.py), raised the minimum floor to K >= 18 covering Cap_user + M × B_zbtc, specified interactive heaviest-chainwork competing-header comparison inside vk_STF, and mandated a fail-closed DEEP_REORG_HALT circuit breaker with >= 144-block rollback snapshots (spec/02 §4).
  10. R8-H07 (Stage 0 PTLC & LN HTLC Erlang tail failure): Confirmed & fixed (Amendment A10). Raised Stage 0 T_znn from 30h to >= 48h (172,800s, P(T_72 > 48h | 2.3×) < 10^{-6}) and outbound LN HTLC Δ_safety_sec from 6h to >= 24h (86,400s, P(T_36 > 24h | 2.3×) < 0.0002), mandated automated block-72 RBF refund watchtowers, and disclosed conditional atomicity (spec/03 §1).
  11. R8-N01 & R8-M01 (Bank-run self-fronting arbitrage & feeless 0x02 DA spam): Confirmed & fixed (Amendment A11). Enforced oldest-PendingExit timestamp priority for reimbursement credit eligibility + optional Dutch-auction fee discovery (R8-N01), reframed Zenon transfers as L1-subsidized soft preconfirmations, and bounded 0x02 new-leaf DA spam via a refundable 500-sat zBTC new-account leaf deposit + <= 1,000 new leaves/6-block epoch cap + deterministic slotted batcher priority (spec/03 §2.2–2.4).
  12. BitVMX-CPU vs BitVM3-GC engineering trade-off: Answered transparently (spec/01 Appendix A.2, Gate G2). While BitVM3 shrinks on-chain disprove size to ~93 vB / 2 rounds, current non-reusable BitVM3 garbled circuits introduce a 1-of-N garbler trust assumption AND require ~2.2–11.2+ TB of one-time off-chain garbled-circuit DA across M × L × R × N = 5 × 1 × 64 × 7 = 2,240 rounds (1–5 GB per round!). Stage 0 runs an explicit Gate G2 evaluation comparing compiled RV32IM BitVMX-CPU traces against emerging reusable DV-SNARK BitVM3-GC before locking Stage 1A's final custody engine — and Stage 2 cleanly supports a non-commingled zBTC_v2 upgrade if reusable BitVM3 matures later.

(Historical R7 closures — C-1..C-4, H-1..H-8, M-1..M-15, L-1..L-4, N-1..N-6, B1..B5 — remain intact in CHANGELOG.md. Note also verified pushbacks on R8: R8-M06 anti-64-byte filtering was already present at spec/02:L67-72 and tightened to >= 65 B; R8-M08 4.4/8.8 and 6.5/12.9 Plasma rates were exact at observed 11.4s/Momentum; R8-C05 BIP-141 wtxid checking was already present at spec/02:L115; and R8-H03 used K = 14, now raised to K >= 18.)

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.