v2 (v3.1.0-rfc) · public rfc · zero-federation · not mainnet-active
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).
Showing word-highlighted redline changes from archived v1 (v3.0.0-rfc) to v2 (v3.1.0-rfc). For structured finding-by-finding rationale, see theChangelog.
| @@ -1,19 +1,23 @@ | |||
| 1 | 1 | # zBTC: Bitcoin–Zenon Interoperability Protocol Specification | |
| 2 | 2 | ||
| 3 | - | **Version:** `v1` (`v3.0.0-rfc` — **Zero-Federation Phased Architecture**: 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; supersedes archived `v0` / `v2.5.0-rfc`, see [CHANGELOG.md](./CHANGELOG.md)) | |
| 4 | - | **Status:** Public Request for Comment (`v1` / `v3.0.0-rfc`) — NOT mainnet-active; Stage 0 gated on upstream `go-zenon` release (`0aa299e` + `#239` closure + full `SetPlasmaVariables` pinning); Stage 1A gated on `BitVMX-CPU` Signet verification, independent third-party cryptography/Bitcoin-Script audit (**M-15**), and hard-BTC operator/verifier capital commitment. | |
| 5 | - | **Target Networks:** Bitcoin Mainnet TODAY (`bip-0141`/`bip-0340`/`bip-0341`/`bip-0342`/`bip-0431` Taproot + TRUC v3 + `P2A` — **zero Bitcoin soft forks**, **zero federated signers**) ↔ Zenon Network (`go-zenon` first tagged release containing `0aa299e`, `#239` closed, `DynamicPlasmaSpork` & `PtlcSpork` enforced; local reference clone `master` `e8986a6` / `origin/dev` `770e893`) | |
| 6 | - | **Consistency & Bounds Checker:** All modeled `n = 8` `BitVMX` W-OTS/TRUC v3 weights, 256-bit Lamport `TakeTx` stack/size bounds, timelock ordering (`[0, 144] → 1,104 < 1,152 < 1,296 < 1,440`), colluding-verifier positive-EV matrices (`k_collude = 0..6`), `{0.50, 0.25, 0.25}` BTC bank-run exit bounds, halving-indexed TVL-scaled `K`, 1-/2-block coinbase midstate SHA-256 padding, honest `8 MiB` `go-zenon` Plasma bounds, PTLC `2.3×` slow-block margins, `clArk` exit weights, and a **non-no-op 2,000-step randomized state-machine simulation (including real Bitcoin reorgs, `ExitSlotUTXO` grief slashes, and Lamport equivocation slashes)** are asserted by [`scripts/verify_spec_bounds.py`](./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.* | |
| 3 | + | **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`](./reviews/HOSTILE_REVIEW_R8_CONSOLIDATED.md) of archived [`v1` / `v3.0.0-rfc`](./versions/v1/SPEC.md) and supersedes archived [`v0` / `v2.5.0-rfc`](./versions/v0/SPEC.md), see [CHANGELOG.md](./CHANGELOG.md)) | |
| 4 | + | **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. | |
| 5 | + | **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`) | |
| 6 | + | **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`](./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.* | |
| 7 | 7 | ||
| 8 | - | **Upstream Provenance & Review Trail:** | |
| 8 | + | **Upstream Provenance, Pinning & Review Trail:** | |
| 9 | 9 | - Vision Proposal: [`https://btc-moonshot.github.io/bigidea/`](https://btc-moonshot.github.io/bigidea/) *(see §9 for mandatory claims alignment)* | |
| 10 | 10 | - Zenon Non-Bridging Thesis: `zenon-developer-commons/essays/Verify Bitcoin, Don't Bridge It.md` & `docs/specs/spv-event-oracle-spec.md` | |
| 11 | - | - Reference Node Codebase: [`go-zenon`](https://github.com/zenon-network/go-zenon) (`master` `e8986a6`, `origin/dev` `770e893`, target release tag containing `0aa299e` + `#239`) | |
| 12 | - | - Archived Baseline (`v0` / `v2.5.0-rfc`): Frozen byte-for-byte in [`versions/v0/`](./versions/v0/) (SHA-256 verified in CI). | |
| 13 | - | - Consolidated Hostile Review (`R7` of `v0`): [`reviews/HOSTILE_REVIEW_R7_CONSOLIDATED.md`](./reviews/HOSTILE_REVIEW_R7_CONSOLIDATED.md) — every finding `C-1..C-4`, `H-1..H-8`, `M-1..M-15`, `L-1..L-4`, plus convergence findings `N-1..N-6` and `B1..B5`, is dispositioned in [`CHANGELOG.md`](./CHANGELOG.md). | |
| 11 | + | - Reference Node Codebase: [`go-zenon`](https://github.com/zenon-network/go-zenon) (`master` `e8986a6`, `origin/dev` `770e893`, target mainnet release tag containing `0aa299e`, `PR #138`, `#239`/`#299`/`#312`) | |
| 12 | + | - Current `v2` (`v3.1.0-rfc`) Integrity Manifest: generated deterministically at build time in `public/raw/SHA256SUMS.txt` (`R8-L02`) | |
| 13 | + | - Archived Previous Version (`v1` / `v3.0.0-rfc`): Frozen byte-for-byte from commit `6ab3999` in [`versions/v1/`](./versions/v1/) (SHA-256 verified in CI; current `v2` redlines directly against `v1`). | |
| 14 | + | - Archived Initial Baseline (`v0` / `v2.5.0-rfc`): Frozen byte-for-byte from commit `7b47b8c` in [`versions/v0/`](./versions/v0/) (SHA-256 verified in CI). | |
| 15 | + | - Consolidated Hostile Reviews: | |
| 16 | + | - [`R8` (`reviews/HOSTILE_REVIEW_R8_CONSOLIDATED.md`)](./reviews/HOSTILE_REVIEW_R8_CONSOLIDATED.md) — independent multi-agent audit of archived `v1 (v3.0.0-rfc)` (6 Critical, 10 High, 9 Medium, 2 Low; Stage 0 & 1B Conditional Pass, Stage 1A Fail as written); **every confirmed R8 defect is remediated in `v2 (v3.1.0-rfc)`**, with exact line-level dispositions and verified pushbacks documented in §10 and [`CHANGELOG.md`](./CHANGELOG.md). | |
| 17 | + | - [`R7` (`reviews/HOSTILE_REVIEW_R7_CONSOLIDATED.md`)](./reviews/HOSTILE_REVIEW_R7_CONSOLIDATED.md) — historical audit of archived `v0` (`v2.5.0-rfc`) that triggered the zero-federation `v1` redesign. | |
| 14 | 18 | ||
| 15 | 19 | --- | |
| 16 | 20 | ||
| 17 | - | ## 1. Executive Summary & Architectural Pivot (`v0` → `v1`) | |
| 21 | + | ## 1. Executive Summary & Architectural Evolution (`v0` → `v1` → `v2`) | |
| 18 | 22 | ||
| 19 | 23 | ### 1.1 Why `v0` Failed — and Why Custodial Federated Multisigs Are Explicitly Rejected | |
| @@ -25,35 +29,35 @@ | |||
| 25 | 29 | 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. | |
| 26 | 30 | ||
| 27 | - | **Why `v1` explicitly REJECTS custodial `k`-of-`n` federated multisigs:** | |
| 28 | - | Falling back to a custodial `k`-of-`n` federated multisig is **normatively forbidden in `v1`**. Federated custody: | |
| 31 | + | **Why `v2` explicitly REJECTS custodial `k`-of-`n` federated multisigs:** | |
| 32 | + | Falling back to a custodial `k`-of-`n` federated multisig is **normatively forbidden in `v2`**. Federated custody: | |
| 29 | 33 | - Violates Bitcoin's non-custodial ethos and Zenon's own thesis (*"Bridges Are Custody Wearing a Mask"* — `Verify Bitcoin, Don't Bridge It.md`); | |
| 30 | 34 | - 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); | |
| 31 | 35 | - 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). | |
| 32 | 36 | ||
| 33 | - | ### 1.2 Governing Cryptographic Boundaries (Theorem 1 & Theorem 2) | |
| 37 | + | ### 1.2 Governing Cryptographic & Engineering Boundaries (Proposition 1 & Proposition 2) | |
| 34 | 38 | ||
| 35 | - | Every design decision in `v1` is constrained by two formal theorems (proved in [`spec/01 §1`](./spec/01-bitcoin-taproot-vault-enforcement.md#1-cryptographic-boundaries-theorem-1--theorem-2) and [`spec/04 §1`](./spec/04-bitcoin-anchoring-and-light-client.md)): | |
| 39 | + | Every design decision in `v2` is constrained by two formal boundary propositions (detailed in [`spec/01 §1`](./spec/01-bitcoin-taproot-vault-enforcement.md#1-cryptographic-boundaries-proposition-1--proposition-2) and [`spec/04 §1`](./spec/04-bitcoin-anchoring-and-light-client.md)): | |
| 36 | 40 | ||
| 37 | - | > **Theorem 1 (Bitcoin Mainnet No-Covenant Impossibility — BIP-340/341/342, Zero Soft Forks):** Given pooled deposit UTXOs `U_A`, `U_B` created at `t_0` on Bitcoin Mainnet today, if ZERO pre-committed parties produce a new signature at `t_1`, it is **cryptographically impossible** for an unknown future recipient Mike (`P_Mike`, `0.25 BTC` unknown at `t_0`) to spend `U_A` or `U_B` paying `0.25 BTC → P_Mike` while binding `0.75 BTC` back into custody. 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**. | |
| 41 | + | > **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**. | |
| 38 | 42 | ||
| 39 | - | > **Theorem 2 (Young Low-Cap Capital / Trust / UX Trilemma — 0 Federation, 0 Soft Forks, `2–20 BTC` Bootstrap Capital):** With zero federated signers, zero Bitcoin soft forks, `~25–33 BTC` ZNN market cap (`0%` ZNN slashing usable), and realistic bootstrap capital `C ∈ [2, 20] BTC`, NO protocol can simultaneously achieve all three of: | |
| 43 | + | > **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: | |
| 40 | 44 | > - **(A)** Instant, non-expiring, fungible cross-depositor `zBTC` (`Alice + Bob → Mike` with zero sender-collusion risk), | |
| 41 | - | > - **(B)** `1-of-∞` permissionless challenging surviving `200–500 sat/vB` fee spikes (blocked by BitVM2's irreducible `~40–91 BTC` bond floor even at `M = 3–5, L = 1`), AND | |
| 42 | - | > - **(C)** `0-of-N` unilateral arbitrary-amount Bitcoin L1 exit (blocked by Theorem 1; `clArk` achieves post-round `0-of-N` only by sacrificing **(A)** via discrete expiring VTXOs and pre-round `arkoor` sender+ASP collusion). | |
| 45 | + | > - **(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 | |
| 46 | + | > - **(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). | |
| 43 | 47 | ||
| 44 | - | ### 1.3 What `v1` (`v3.0.0-rfc`) Is, Stated Plainly | |
| 48 | + | ### 1.3 What `v2` (`v3.1.0-rfc`) Is, Stated Plainly | |
| 45 | 49 | ||
| 46 | - | `v1` specifies a **zero-federation, zero-soft-fork, zero-ZNN-custody-coupling** phased architecture starting from zero custody risk: | |
| 50 | + | `v2` (`v3.1.0-rfc`) specifies a **zero-federation, zero-soft-fork, zero-ZNN-custody-coupling** phased architecture starting from zero custody risk: | |
| 47 | 51 | ||
| 48 | 52 | 1. **Stage 0 (`0–6 months`, `0 BTC` bridge custody risk, `0–5 BTC` voluntary LP — Mandatory Start):** | |
| 49 | - | - Ship the **Direct-on-L1 Bitcoin SPV Event Oracle** (`spec/02 §2`, strictly Event Validity, zero custody authority, aligned with `Verify Bitcoin, Don't Bridge It.md`) and **non-custodial PTLC / Lightning HTLC atomic swaps** (`spec/03 §1`, hardened for `2.3×` June 2021 slow blocks) while building and auditing the Stage 1A Rollup Core + `BitVMX-CPU` RISC-V verifier on Signet. | |
| 50 | - | 2. **Stage 1 Decision Gate (Explicitly Governed by Hard-BTC Commitment & Timeline):** | |
| 51 | - | - **Stage 1A — Primary Path for Pooled Fungible `zBTC` (`12–18+ months` incl. audit for 4–6 engineers; requires `~12.8–18.8 BTC` of non-yielding hard BTC ≈ `40–75%` of ZNN's `~25–33 BTC` market cap):** | |
| 52 | - | - **Shared Core (0% Zenon Trust — Survives 49%–100% Zenon Compromise):** A **Bitcoin-Anchored Sovereign ZK Validity Rollup** where Zenon is demoted to an untrusted feeless sequencing & soft-preconfirmation layer (`AccountBlock.Data`, `~28,480` Plasma, `0` sat BTC fee, NOT native ZTS). Canonical ordering, complete mutated-leaf DA (`0x02 BATCH_DA` + embedded `π_batch`), and uncensorable forced inclusion (`0x01 FORCED_EXIT`, `0x03 FORCED_TRANSFER`) live strictly on Bitcoin L1 via full stripped-block (`≤ 1,000,000 B`) scanning. | |
| 53 | - | - **Custody Engine (Right-Sized `BitVMX`, `n = 8`, `M = 3–5`, `L = 1`, `N = 7`):** Open-source `BitVMX-CPU` (`RV32IM`) interactive bisection (`~7.44 kvB`/prover tx, **100% BIP-431 TRUC v3** with `P2A` ephemeral anchors; `~75 kvB` Prover / `~15 kvB` Verifier; `F_chal = 0.40 BTC` covering `500 sat/vB` sustained across all `20` steps, `533 sat/vB` break-even), deleted-key `{0.50, 0.25, 0.25}` BTC multi-tier vaults, 256-bit Lamport `TakeTx` equivocation slashing (`~3.1 kvB` TRUC v3), dual-input `Stake_r` + `VaultConnector_r` bisection slashing (`0` BTC stolen from vault, positive EV `≥ +0.0167 BTC` for every honest verifier even if `6 of 7` verifiers collude with the operator!), and `(2M + 1)`-leaf registered-operator spend-or-refund `ExitSlotUTXO`. **Pre-mainnet maturity explicitly disclosed.** | |
| 54 | - | - **Stage 1B — Explicit Alternative Gate (If Hard-BTC Budget `< 5–10 BTC`, `3–6 mo` Launch Target, or `0-of-N` Post-Round Exit Outweighs Pooled Fungibility):** | |
| 55 | - | - 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 and `log2(N)` L1 exit fees). | |
| 53 | + | - 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. | |
| 54 | + | 2. **Stage 1 Decision Gate (Explicitly Governed by Hard-BTC Commitment, Engineering Scope & Timeline):** | |
| 55 | + | - **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):** | |
| 56 | + | - **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. | |
| 57 | + | - **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.** | |
| 58 | + | - **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):** | |
| 59 | + | - 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). | |
| 56 | 60 | 3. **Stage 2 (`12+ months`, Zero-TTP Scale & Upgrade — Zero Dead-End User Trap):** | |
| 57 | - | - Deleted-key Stage 1A vaults NEVER expire and drain organically 1:1 to native BTC via `0x01` exits (no deleted-key L1 rollover). Identical-STF `BitVMX` expansion (`M = 5 → 20`, `L = 1 → 4`, `K = 36 → 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. | |
| 61 | + | - 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. | |
| 58 | 62 | ||
| 59 | 63 | --- | |
| @@ -61,18 +65,18 @@ | |||
| 61 | 65 | ## 2. Normative Module Map & Authority Precedence | |
| 62 | 66 | ||
| 63 | - | | Module | File | Normative Scope in `v1` (`v3.0.0-rfc`) | | |
| 67 | + | | Module | File | Normative Scope in `v2` (`v3.1.0-rfc`) | | |
| 64 | 68 | |---|---|---| | |
| 65 | - | | **Master** | [`SPEC.md`](./SPEC.md) | Zero-federation phased architecture, Theorems 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 (§7), Non-Bridging Alignment & Public Claims (§8–§9), and Written R7 Disposition (§10). | | |
| 66 | - | | **Part 1** | [`spec/01-bitcoin-taproot-vault-enforcement.md`](./spec/01-bitcoin-taproot-vault-enforcement.md) | **Highest Custody Precedence (`BTC-BITVMX-V1`):** Theorems 1–2; acyclic `OP_DROP` `DepositTx` (`{0.50, 0.25, 0.25}` deleted-key vaults, `certBlob = 104 B`, `opBitmask`, zero-TTP cohort rule); `BitVMX-CPU` `n = 8` bisection (`301` W-OTS digits ≈ `7.44 kvB`, `20` steps, `75/15 kvB`, `F_chal = 0.40 BTC`, 100% TRUC v3); simultaneous `[0, 144]` challenge window, `T_take = 1,152`, `T_cooldown = 1,296`, `RetireStakeTx = 1,440`; 256-bit Lamport `TakeTx` (`5,922 B` script, `~3.1 kvB`); dual-input slash (`0.15/1.85/0.55` positive-EV matrix); `(2M+1)`-leaf `ExitSlotUTXO`; exact `12.8/18.8 BTC` capital & `65–72d` bank-run math; Stage 1B `clArk` spec; **Appendix A (Track B Pure Tier-0 Bitcoin Soft-Fork Covenant + BitVM2/BitVM3 Reference)**. | | |
| 67 | - | | **Part 2** | [`spec/02-btc-authorization-domain-and-spv.md`](./spec/02-btc-authorization-domain-and-spv.md) | **Stage 0 Direct-on-L1 Bitcoin SPV Event Oracle** (Event Validity only, 1-/2-block coinbase midstate SHA-256 final padding covering all `len % 64`, exact ABI/storage-op/`dp.MaxContractBlocks = 40` budget) + **Stage 1A Bitcoin-L1-Canonical Authorization Domain** (`0x00`..`0x07` `OP_RETURN "ZBTX"` tags, full `≤ 1 MB` stripped-block scan + single `wtxid_i` branch, launch-time `(h_lane_init, H, D)` PoW anchor with `D ≥ 0.50 × D(h_lane_init)` and TVL-scaled `K`). | | |
| 68 | - | | **Part 3** | [`spec/03-settlement-minted-zbtc-and-feeless-rails.md`](./spec/03-settlement-minted-zbtc-and-feeless-rails.md) | **Stage 0 Hardened Non-Custodial PTLC & LN HTLC Swaps** (absolute Unix timestamps, `2.3×` slow-block margin) + **Stage 1A Sovereign Rollup STF `F` & Feeless Zenon Sequencer Rails** (`AccountBlock.Data` `~28,480` Plasma, honest `8 MiB` `~1,050–1,200 tx/s` ceiling, `RollupHTLC`/`RollupPTLC`, `B_zbtc = 0.60 BTC`/lane accounting, `ExitSlotUTXO` spend-or-refund, permissionless DA batchers) + **Stage 1B `clArk` VTXO Coordination**. | | |
| 69 | - | | **Part 4** | [`spec/04-bitcoin-anchoring-and-light-client.md`](./spec/04-bitcoin-anchoring-and-light-client.md) | **Zenon `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 (eliminating BLS finality from BTC custody), and non-custodial light-client UX notes. | | |
| 70 | - | | **Part 5** | [`spec/05-go-zenon-upgrade-plan.md`](./spec/05-go-zenon-upgrade-plan.md) | **Minimal `go-zenon` Upgrade Plan:** Stage 0 prerequisites (`0aa299e` tag, `#239` FIFO panic-stall closure, `DynamicPlasmaSpork` + full `SetPlasmaVariables` pinning of `MaxBasePlasmaInMomentum`, `MaxPriceChangePercent`, `FusedPlasmaTarget`, `PowPlasmaTarget`, `PriceChangeDenominator`, `PtlcSpork`, Stage 0 SPV Event Oracle) + **zero-hard-fork custody boundary for Stage 1A/1B** (`SporkAddress` cannot steal BTC or censor L1 exits). | | |
| 71 | - | | **Checker** | [`scripts/verify_spec_bounds.py`](./scripts/verify_spec_bounds.py) | Stdlib-only Python 3 Consistency & Bounds Checker asserting all Stage 0, Stage 1A (`BitVMX n=8`), Stage 1B (`clArk`), and Theorem 2 bounds + non-no-op 2,000-step randomized simulation with real Bitcoin reorgs, `ExitSlotUTXO` grief slashes, and Lamport equivocation slashes. | | |
| 72 | - | | **Changelog** | [`CHANGELOG.md`](./CHANGELOG.md) | Complete `v0` (`v2.5.0-rfc`) → `v1` (`v3.0.0-rfc`) finding-by-finding disposition (`C-1..C-4`, `H-1..H-8`, `M-1..M-15`, `L-1..L-4`, `N-1..N-6`, `B1..B5`) and rejection rationale for custodial federated multisigs. | | |
| 69 | + | | **Master** | [`SPEC.md`](./SPEC.md) | Zero-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). | | |
| 70 | + | | **Part 1** | [`spec/01-bitcoin-taproot-vault-enforcement.md`](./spec/01-bitcoin-taproot-vault-enforcement.md) | **Highest 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)**. | | |
| 71 | + | | **Part 2** | [`spec/02-btc-authorization-domain-and-spv.md`](./spec/02-btc-authorization-domain-and-spv.md) | **Stage 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). | | |
| 72 | + | | **Part 3** | [`spec/03-settlement-minted-zbtc-and-feeless-rails.md`](./spec/03-settlement-minted-zbtc-and-feeless-rails.md) | **Stage 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**. | | |
| 73 | + | | **Part 4** | [`spec/04-bitcoin-anchoring-and-light-client.md`](./spec/04-bitcoin-anchoring-and-light-client.md) | **Zenon `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. | | |
| 74 | + | | **Part 5** | [`spec/05-go-zenon-upgrade-plan.md`](./spec/05-go-zenon-upgrade-plan.md) | **Minimal `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**. | | |
| 75 | + | | **Checker** | [`scripts/verify_spec_bounds.py`](./scripts/verify_spec_bounds.py) | Stdlib-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. | | |
| 76 | + | | **Changelog** | [`CHANGELOG.md`](./CHANGELOG.md) | Complete **`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. | | |
| 73 | 77 | ||
| 74 | 78 | ### 2.1 Authority & Conflict Precedence (`M-13` Fixed) | |
| 75 | 79 | ||
| 76 | - | 1. **Bitcoin L1 Consensus & Part 1 Vault Scripts ([`spec/01`](./spec/01-bitcoin-taproot-vault-enforcement.md), `BTC-BITVMX-V1`)** — non-overridable custody layer. Hard-pinned `vk_STF`, deleted-key Taproot graphs, `StakeChain`, and `ExitSlotUTXO` rules cannot be overridden by any Zenon contract, Pillar, or spork. | |
| 80 | + | 1. **Bitcoin L1 Consensus & Part 1 Vault Scripts ([`spec/01`](./spec/01-bitcoin-taproot-vault-enforcement.md), `BTC-BITVMX-V1`)** — non-overridable custody layer. Hard-pinned `vk_STF`, deleted-key Taproot graphs, `AdmissionTicketUTXO`s, `StakeChain`, and `ExitSlotUTXO` rules cannot be overridden by any Zenon contract, Pillar, or spork. | |
| 77 | 81 | 2. **Bitcoin-L1-Canonical Authorization & Rollup STF ([`spec/02`](./spec/02-btc-authorization-domain-and-spv.md) & [`spec/03`](./spec/03-settlement-minted-zbtc-and-feeless-rails.md))** — deterministic state transition over Bitcoin L1 blocks (`0x00`..`0x07`). | |
| 78 | 82 | 3. **Stage 0 `go-zenon` Runtime & SPV Event Oracle ([`spec/05`](./spec/05-go-zenon-upgrade-plan.md))** — governs feeless Zenon sequencing UX and Stage 0 non-custodial SPV/PTLC rails; holds ZERO authority over Stage 1A BTC custody. | |
| @@ -83,53 +87,55 @@ | |||
| 83 | 87 | ## 3. End-to-End Protocol Flows & Hostile Scenario Traces | |
| 84 | 88 | ||
| 85 | - | ### 3.1 Stage 0: Verify Bitcoin (SPV Event Oracle + Non-Custodial PTLC/LN) | |
| 89 | + | ### 3.1 Stage 0: Verify Bitcoin (SPV Event Oracle + Erlang-Hardened Non-Custodial PTLC/LN) | |
| 86 | 90 | ||
| 87 | 91 | Zero pooled BTC custody (`0 BTC` bridge exposure): | |
| 88 | - | 1. Relayers submit Bitcoin headers and Merkle inclusion proofs (with 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. | |
| 89 | - | 2. Users swap native BTC / Lightning against Zenon assets atomically via BIP-327 Taproot MuSig2 PTLCs (`<72> OP_CSV` refund leaf, `h_conf + 66` confirmed-before-refund with CPFP, `T_znn = now + 108,000s` = `30h` leaving `4.7h` margin under `2.3×` June 2021 slow blocks) or SHA-256 HTLCs (`hashType = 1`, `Δ_safety = 36` blks, Hold Invoice rate limits, `spec/03 §1`). | |
| 92 | + | 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. | |
| 93 | + | 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. | |
| 90 | 94 | ||
| 91 | 95 | ### 3.2 Stage 1A: Sovereign ZK Validity Rollup + Right-Sized `BitVMX` (`n = 8`, `M = 3–5`, `N = 7`) | |
| 92 | 96 | ||
| 93 | - | #### Flow A — Acyclic Deposit (`Alice 1 BTC`, `Bob 1 BTC`, Closes `v0 C-4, N-2, M-7`) | |
| 94 | - | 1. Alice locks `1.0 BTC + fee` in her own self-custodial staging UTXO `U_Alice_wallet` with Tapscript `OP_DROP <pk_Alice> OP_CHECKSIG`. | |
| 95 | - | 2. Alice prepares `DepositTx` spending `U_Alice_wallet` → `vout[0..2]` = multi-tier 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 `vout[3]` does not hash `certBlob`, **`txid_dep` is fixed before signing**. | |
| 96 | - | 3. Alice + `N = 7` presigners + all online operators (`≥ M_min`, recorded in `opBitmask`) presign the `TakeTx_{d,j,l,r}` graphs (`M × L × R = 5 × 1 × 64 = 320` pre-signed `TakeTx`s per vault ≈ `40 KB`, `< 100ms` MuSig2 ONCE at deposit) using fresh per-deposit ephemeral keys `Q_setup_d = MuSig2(P_{1..N,d}, P_{A,d})`. | |
| 97 | - | 4. Each presigner **permanently deletes `x_{i,d}`** and signs non-spending identity attestation `σ_cert` over `txid_dep`, forming `certBlob = σ_cert(64B) || Q_setup_d(32B) || opBitmask(8B)` (`104 B ≤ 520 B` BIP-342 stack limit). | |
| 98 | - | 5. Only after verifying all pre-signed `TakeTx`s and `σ_cert` does Alice delete `x_{A,d}`, push `[sig_Alice, certBlob, script, controlBlock]` into `DepositTx.vin[0].witness`, and broadcast (zero hash cycle, zero stranding!). At `K = 14` confirmations, the STARK scans `DepositTx` via stripped block + `wtxid_dep` and credits `1.0 zBTC` to Alice (identical for Bob). | |
| 97 | + | #### Flow A — Acyclic Deposit With L1 `AdmissionTicketUTXO` Cap Exclusion (`Alice 1 BTC`, `Bob 1 BTC`, Closes `R8-C01`, `R8-C03`, `R8-H06`) | |
| 98 | + | 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!). | |
| 99 | + | 2. Alice prepares `DepositTx` spending `vin[0] = U_Alice_wallet` AND **denomination-matched `AdmissionTicketUTXO`s (`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`). | |
| 100 | + | 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 `TakeTx`s 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})`. | |
| 101 | + | 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 `TakeTx`s) is replicated and cryptographically verified across `>= 3` independent public archival mirrors (`R8-H06`). | |
| 102 | + | 5. Only after verifying all pre-signed `TakeTx`s, `σ_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). | |
| 99 | 103 | ||
| 100 | - | #### Flow B — Feeless `zBTC` Transfers on Zenon (`AccountBlock.Data`) | |
| 101 | - | - Signed rollup transfers (`~110 B`) are submitted in Zenon `AccountBlock.Data`, paying **`0` satoshis 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 throughput `~4.4` tx/s at `2.1M` floor, `~8.8` tx/s default, **`~1,050–1,200` tx/s real hard ceiling** under `MaxMomentumContentBytes = 8 MiB`). | |
| 102 | - | - Permissionless market-funded batch proposers aggregate feeless transfers every `~6` Bitcoin blocks into `0x02 BATCH_DA` carrying **complete mutated SMT leaves** (`16 B` existing / `48 B` new account) + succinct embedded proof `π_batch` (transparent STARK/IPA or Groth16). First valid `0x02` matching `R_{h-1}` in Bitcoin L1 block/tx order wins; invalid batches are deterministically skipped in-circuit. | |
| 104 | + | #### Flow B — L1-Subsidized Feeless `zBTC` Transfers on Zenon (`AccountBlock.Data`) | |
| 105 | + | - 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`). | |
| 106 | + | - 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`). | |
| 107 | + | - 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`). | |
| 103 | 108 | ||
| 104 | 109 | #### Flow C — Hostile Trace 1: Bob (`1 BTC → 1 zBTC → spends 0.5 → recovers 0.5 BTC` Under `49%`–`100%` Zenon Compromise) | |
| 105 | - | 1. Bob deposits `1.0 BTC` (`{0.50, 0.25, 0.25}` vaults) → `1.0 zBTC` canonical on Bitcoin L1. | |
| 110 | + | 1. Bob deposits `1.0 BTC` (`{0.50, 0.25, 0.25}` vaults) → `1.0 zBTC` canonical on Bitcoin L1 at `K = 18` confirmations. | |
| 106 | 111 | 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`**. | |
| 107 | - | 3. Bob bypasses Zenon completely by broadcasting a `~150 vB` Bitcoin L1 **`0x01 FORCED_EXIT`** (`0.50 BTC → P_Bob`) creating a `546`-sat `(2M + 1)`-leaf **`ExitSlotUTXO`**. | |
| 108 | - | 4. Any `1-of-M` (`M = 3–5`) 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**). | |
| 109 | - | 5. At `K = 14`, the STARK credits `ReimbursementCredit[O_j] += 0.50 BTC`, FIFO-assigns one `0.50 BTC` vault `U_d` to `O_j`, and `O_j` claims `U_d` via `RoundTx_r → TakeTx` (`T_take = 1,152` blks, verified by `N = 7` pre-committed verifiers under `n = 8` `BitVMX` bisection). | |
| 112 | + | 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`. | |
| 113 | + | 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**). | |
| 114 | + | 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`). | |
| 110 | 115 | ||
| 111 | 116 | #### Flow D — Hostile Trace 2: Mike (`Alice 1 + Bob 1 → Mike 2 → recovers 0.25 BTC` When Zenon Signers Refuse to Sign) | |
| 112 | 117 | 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. | |
| 113 | - | - Once anchored in `0x02 BATCH_DA`, Mike's `2.0 zBTC` has **100% Bitcoin PoW finality** (immune to 100% Zenon + 100% Alice/Bob collusion). | |
| 114 | - | - 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 a soft confirmation; large receipts like `2 BTC` wait for L1 batch confirmation.)* | |
| 118 | + | - 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`). | |
| 119 | + | - 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.)* | |
| 115 | 120 | 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`). | |
| 116 | - | 3. Any `1-of-M` (`M = 3–5`) 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.** | |
| 117 | - | 4. At `K = 14`, the STARK FIFO-assigns one `0.25 BTC` vault to `O_j` (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 (e.g., `0.2371 BTC` or `0.001 BTC`), `O_j` still pays the exact amount in `FrontingTx` and accumulates `ReimbursementCredit[O_j]` until hitting an available `0.25`/`0.50 BTC` vault — zero new presigning needed! | |
| 118 | - | 5. **Fee-spike & grief recovery:** If Bitcoin fees spike above `f_op`, Mike bumps `f_op` via `0x06 EXIT_FEE_BUMP` or cancels after `<288> OP_CSV` via Leaf `2M` (`EXIT_CANCEL`). If a rogue operator sweeps `ExitSlotUTXO` without paying `vout[0]`, the STARK atomically refunds `0.25 zBTC` to Mike, slashes `0.01 BTC` from the operator's `0.05 BTC` grief buffer to Mike, and auto-suspends the operator. | |
| 121 | + | 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.** | |
| 122 | + | 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`). | |
| 123 | + | 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`). | |
| 119 | 124 | ||
| 120 | 125 | --- | |
| 121 | 126 | ||
| 122 | - | ## 4. Honest Threat Model, Residual Boundaries & Privileged Powers Table (`H-3` Closed) | |
| 127 | + | ## 4. Honest Threat Model, Residual Boundaries & Privileged Powers Table (`H-3`, `R8-C06`, `R8-H03`, `R8-H08`) | |
| 123 | 128 | ||
| 124 | - | **`v1` Stage 1A (`BitVMX` Rollup) is trust-minimized (`Tier 1`), NOT pure `Tier 0` (which Theorem 1 proves requires a Bitcoin soft fork — see `spec/01 Appendix A`).** Delivered security is bounded by the following explicit, un-sugarcoated assumptions: | |
| 129 | + | **`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: | |
| 125 | 130 | ||
| 126 | 131 | 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. | |
| 127 | 132 | 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`). | |
| 128 | - | 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 = 48` blks, `~15 kvB` total verifier weight) with CPFP. Anyone on Earth can detect fraud and alert all 7 verifiers off-chain, and every honest verifier has **positive EV (`≥ +0.0167 BTC` @ `500 sat/vB`) 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. | |
| 129 | - | 4. **`1-of-M` Pre-Committed Operator Exit Liveness (`M = 3–5` Pilot — Irreducible Corollary 1B Bound):** At least 1 of `M = 3–5` independent bonded operators remains online with liquid BTC to front exits. If ALL `M = 3–5` operators vanish permanently, Mike cannot self-claim on Bitcoin L1 today (`0` theft; after `288` blks Mike cancels via Leaf `2M` and retains `0.25 zBTC`, exits stalled until an operator returns). | |
| 130 | - | 5. **Sustained Dispute Fee-Rate Envelope (`≤ 500 sat/vB` for `6.7` Consecutive Days):** `F_chal = 0.40 BTC` covers `~75 kvB` Prover bisection up to `533 sat/vB` sustained across all `20` steps (`6.7` days); Verifier `~15 kvB` is covered up to `610 sat/vB` (worst-case 6-way split) / `1,000 sat/vB` (winner L1 payout). Historical peaks (`1,805 sat/vB` April 2024 lasted `~33h` ≈ 2–4 steps) fit comfortably; a hypothetical week-long `> 533 sat/vB` spike erodes honest dispute coverage. | |
| 131 | - | 6. **TVL-Scaled Private-Fork Bound (`0.50 × K × Subsidy(era) > Cap_TVL`):** Without `OP_BLOCKHASH`, each lane pins launch-time `(h_lane_init, H, D)` with `D(h) ≥ 0.50 × D(h_lane_init)` and caps TVL strictly below private-fork PoW cost (`K = 14` ⇒ `Cap_TVL ≤ 15 BTC`; `K = 36` ⇒ `≤ 50 BTC`; `K = 144` ⇒ `≤ 200 BTC`). | |
| 132 | - | 7. **Bank-Run Recycling Queue (`~65–72` Days for 100% Run at `M = 3–5, L = 1`):** While individual exits front in ~10m up to available operator float (`2.20–3.00 BTC`), a 100% bank run recycles at `0.111 BTC/day` (`M = 3`, `~72d` for `10 BTC`) or `0.185 BTC/day` (`M = 5`, `~65d` for `15 BTC`) under `{0.50, 0.25, 0.25}` vaults (or `~47d`/`~43d` under `{0.50, 0.50}` vaults). | |
| 133 | - | 8. **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), requires `100%` ASP liquidity per cycle, and exposes pre-round `arkoor` transfers to `sender + ASP` collusion. | |
| 133 | + | 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`). | |
| 134 | + | 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). | |
| 135 | + | 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. | |
| 136 | + | 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. | |
| 137 | + | 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`). | |
| 138 | + | 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–104d` for `10 BTC` user cap) or `0.128 BTC/day` (`M = 5`, `~94–104d` for `15 BTC` user cap) under `{0.50, 0.25, 0.25}` vaults (or `~62–68d` under `{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. | |
| 139 | + | 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. | |
| 134 | 140 | ||
| 135 | 141 | ### 4.1 Complete Privileged Powers Table (`H-3` Closed — ZERO Custodial Authority) | |
| @@ -137,41 +143,41 @@ | |||
| 137 | 143 | | Power / Action | Holder | Threshold | Timelock | Maximum Effect / Blast Radius on Stage 1A BTC Custody | | |
| 138 | 144 | |---|---|---|---|---| | |
| 139 | - | | **Spend Existing Stage 1A BTC Vaults (`U_d`)** | **NOBODY (ephemeral `Q_setup_d` deleted)** | N/A | N/A | **0 sats custodial sweep power.** Spendable ONLY via pre-signed `TakeTx` after `T_take = 1,152` blks subject to `N = 7` `BitVMX` verifiers + Lamport equivocation slash. | | |
| 140 | - | | **Mutate Rollup STF Rules (`vk_STF`) on Existing Vaults** | **NOBODY (`vk_STF` hard-pinned at `t = 0`)** | N/A | N/A | **0 effect.** No Zenon spork, governance vote, or operator can alter STF rules on existing vaults. | | |
| 145 | + | | **Spend Existing Stage 1A BTC Vaults (`U_d`)** | **NOBODY (ephemeral `Q_setup_d` deleted)** | N/A | N/A | **0 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. | | |
| 146 | + | | **Mutate Rollup STF Rules (`vk_STF`) on Existing Vaults** | **NOBODY (`vk_STF` hard-pinned at `t = 0`)** | N/A | N/A | **0 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). | | |
| 141 | 147 | | **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). | | |
| 142 | 148 | | **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 `GovernanceContract` | `1-of-1` today | `SporkMinHeightDelay = 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`.)* | | |
| 143 | - | | **Operator Fronting & Reimbursement Claim (`O_1..O_M`)** | Independent Bonded Operators (`M = 3–5` pilot) | `1-of-M` for exit liveness | `T_take = 1,152` blks; `T_cooldown = 1,296` blks | **Zero theft power** under `1-of-N` verifier honesty (`-1.94` to `-2.55 BTC` net loss on fraud: `-2.55 BTC` solo, `-2.40` to `-1.9417 BTC` with `1..6` colluders); all `M` vanishing stalls exits (`0` principal loss). | | |
| 144 | - | | **BitVMX Fraud Challenge (`V_1..V_7`)** | Independent Pre-Committed Verifiers (`N = 7`) | **`1-of-7`** | `[0, 144]` blks open; `T_step = 48` blks | Any 1 honest verifier stops fraud, collects `≥ +0.0167` to `+0.075 BTC` net profit, and burns `1.85 BTC` of rogue operator's bond. | | |
| 149 | + | | **Operator Fronting & Reimbursement Claim (`O_1..O_M`)** | Independent Bonded Operators (`M = 3–5` pilot) | `1-of-M` for exit liveness | `T_take = 1,728` blks; `T_cooldown = 1,872` blks | **Zero 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). | | |
| 150 | + | | **BitVMX Fraud Challenge (`V_1..V_7`)** | Independent Pre-Committed Verifiers (`N = 7`) | **`1-of-7`** | `[0, 144]` blks open; `T_step = 72` blks | Any 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. | | |
| 145 | 151 | ||
| 146 | 152 | --- | |
| 147 | 153 | ||
| 148 | - | ## 5. Reference `go-zenon` Ground-Truth Baseline (`M-3`, `B1`, `B2`, `L-3`) | |
| 154 | + | ## 5. Reference `go-zenon` Ground-Truth Baseline (`M-3`, `B1`, `B2`, `L-3`, `R8-M08`) | |
| 149 | 155 | ||
| 150 | - | - **Verified Local Clone:** `master` (`e8986a6`, `v0.0.10-alphanet`) and `origin/dev` (`770e893`, carrying `DynamicPlasmaSpork`, `PtlcSpork`, `Libp2pSpork`). *(Note: upstream fix `0aa299e` is not present in the local git clone and remains an explicit Stage 0 upstream release gate.)* | |
| 151 | - | - **Stage 0 Hard Preconditions (`spec/05`):** (1) First tagged `go-zenon` release containing `0aa299e`; (2) upstream issue `#239` deterministic failed-receive closure (`B1`); (3) `DynamicPlasmaSpork` enforced with **complete `SetPlasmaVariables` pinning** (`MaxBasePlasmaInMomentum >= 2,100,000`, `MaxPriceChangePercent <= 25%`, PLUS lower bounds on `FusedPlasmaTarget >= 525,000`, `PowPlasmaTarget >= 525,000`, and `PriceChangeDenominator >= 8`, preventing exponential Dynamic Plasma lockout); (4) `PtlcSpork` active. | |
| 156 | + | - **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.)* | |
| 157 | + | - **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`). | |
| 152 | 158 | - **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. | |
| 153 | 159 | ||
| 154 | 160 | --- | |
| 155 | 161 | ||
| 156 | - | ## 6. Upstream Amendment Register (`v1` Zero-Federation Scope) | |
| 162 | + | ## 6. Upstream Amendment Register (`v2` Zero-Federation Scope) | |
| 157 | 163 | ||
| 158 | - | | ID | Upstream Target | Status in `v1` | Normative Requirement | | |
| 164 | + | | ID | Upstream Target | Status in `v2` | Normative Requirement | | |
| 159 | 165 | |---|---|---|---| | |
| 160 | - | | **A-SPEC-1, A-SPEC-2, A-SPEC-6** | `Project Zeno` optimistic bridge framework | **Not required in `v1`** | Stage 0 uses direct Event-Validity SPV; Stage 1A uses Bitcoin-L1-canonical ZK validity (`0x00`..`0x07`). | | |
| 161 | - | | **A-SPEC-4** | Deterministic Exit ID | **Required (`Stage 1A`)** | `exitId = SHA256("ZBTX_EXIT_V1" \|\| bitcoinTxid \|\| voutOrIdx \|\| nonce)` derived deterministically on Bitcoin L1. | | |
| 162 | - | | **A-BTC-1** | Bitcoin Refund / Exclusion Rules | **Required (`Stage 1A`)** | Refunds enforced strictly by Bitcoin L1 UTXO exclusion (`ExitSlotUTXO` spend-or-refund rule) — zero timeout-vs-fronting double-pay races (`M-8`). | | |
| 163 | - | | **A-MINT-1** | `TokenContract.IssueMinted` | **Retired in `v1`** | Stage 1A `zBTC` balances live in the Bitcoin-canonical Rollup SMT (NOT pre-minted inside a Zenon embedded contract, eliminating `H-8` entirely!). | | |
| 164 | - | | **A-PILLAR-1** | `go-zenon` `pillars.go` BLS12-381 & 72d lock | **Not required in `v1`** | Zenon consensus & Pillar committees are removed from BTC custody completely (`spec/04`). | | |
| 166 | + | | **A-SPEC-1, A-SPEC-2, A-SPEC-6** | `Project Zeno` optimistic bridge framework | **Not required in `v2`** | Stage 0 uses direct Event-Validity SPV; Stage 1A uses Bitcoin-L1-canonical ZK validity (`0x00`..`0x07`). | | |
| 167 | + | | **A-SPEC-4** | Deterministic Exit ID | **Required (`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`. | | |
| 168 | + | | **A-BTC-1** | Bitcoin Refund / Exclusion Rules | **Required (`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`). | | |
| 169 | + | | **A-MINT-1** | `TokenContract.IssueMinted` | **Retired in `v2`** | Stage 1A `zBTC` balances live in the Bitcoin-canonical Rollup SMT (NOT pre-minted inside a Zenon embedded contract, eliminating `H-8` entirely!). | | |
| 170 | + | | **A-PILLAR-1** | `go-zenon` `pillars.go` BLS12-381 & 72d lock | **Not required in `v2`** | Zenon consensus & Pillar committees are removed from BTC custody completely (`spec/04`). | | |
| 165 | 171 | ||
| 166 | 172 | --- | |
| 167 | 173 | ||
| 168 | - | ## 7. Phased Delivery, Capital Decision Gates & Zero-Dead-End Growth (`M-15`) | |
| 174 | + | ## 7. Phased Delivery, Capital Decision Gates & Zero-Dead-End Growth (`M-15`, `R8-H08`, `R8-M09`) | |
| 169 | 175 | ||
| 170 | - | | Stage | Timeline & Hard-BTC Capital | Normative Scope & Blocking Exit Criteria | Zero-Dead-End Migration Guarantee | | |
| 176 | + | | Stage | Timeline & Full Hard-BTC Capital | Normative Scope & Blocking Exit Criteria | Zero-Dead-End Migration Guarantee | | |
| 171 | 177 | |---|---|---|---| | |
| 172 | - | | **Stage 0 (Mandatory Foundation — Verify Bitcoin)** | **`0–6 months`**, **`0 BTC` bridge custody risk** (`0–5 BTC` voluntary LP) | Ship `go-zenon` prerequisites (`0aa299e`, `#239`, full `SetPlasmaVariables` pinning, `PtlcSpork`), **Direct-on-L1 Bitcoin SPV Event Oracle** (1-/2-block coinbase midstate, `≤ 24` storage ops, `dp.MaxContractBlocks = 40`), and **non-custodial PTLC/LN atomic swaps** (`2.3×` slow-block safe). Build & test the Rollup stripped-block STARK + `BitVMX-CPU` (`RV32IM` `n=8`) stack on Signet. | Zero custodial BTC at risk while proving every Rollup + `BitVMX` primitive on Signet. | | |
| 173 | - | | **Stage 1A (Primary Path — Right-Sized `BitVMX` Rollup)** | **`12–18+ months` (incl. audit, 4–6 engineers)**; **`12.8 BTC`** (`M=3, N=7, ≤ 10 BTC` TVL) or **`18.8 BTC`** (`M=5, N=7, ≤ 15 BTC` TVL) *(≈ `40–75%` of ZNN's `~25–33 BTC` mcap)* | **Hard Entry Gates:** (1) Full Signet drill of `DepositTx`, `0x01–0x07`, `ExitSlotUTXO` (fronting, grief slash, cancel), `RoundTx → TakeTx` (Lamport equivocation slash), and `n=8` `BitVMX` 20-step TRUC v3 bisection (verifying measured weights `≤ 7.44 kvB`/tx); (2) independent third-party cryptography & Bitcoin-Script audit (**M-15**); (3) committed independent operator + verifier hard BTC (`2.60 BTC`/lane + `0.40 BTC`/verifier). *Pre-mainnet maturity of `BitVMX-CPU` explicitly disclosed.* | Deleted-key vaults NEVER expire and stay 100% redeemable 1:1 via `0x01 FORCED_EXIT` to native BTC L1. | | |
| 174 | - | | **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 `~12.8–18.8 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` + 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`. | | |
| 175 | - | | **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=36→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. | | |
| 178 | + | | **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. | | |
| 179 | + | | **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`). | | |
| 180 | + | | **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`. | | |
| 181 | + | | **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. | | |
| 176 | 182 | ||
| 177 | 183 | --- | |
| @@ -186,35 +192,36 @@ | |||
| 186 | 192 | ## 9. Public Claims Alignment (`bigidea` Synchronization) | |
| 187 | 193 | ||
| 188 | - | All public materials (including [`btc-moonshot.github.io/bigidea`](https://btc-moonshot.github.io/bigidea/)) MUST match `v1` verbatim: | |
| 194 | + | All public materials (including [`btc-moonshot.github.io/bigidea`](https://btc-moonshot.github.io/bigidea/)) MUST match `v2` (`v3.1.0-rfc`) verbatim: | |
| 189 | 195 | ||
| 190 | - | | Outdated Public Claim (`v0` / `bigidea`) | Accurate `v1` (`v3.0.0-rfc`) Statement | | |
| 196 | + | | Outdated Public Claim (`v0` / `v1` / `bigidea` errata) | Accurate `v2` (`v3.1.0-rfc`) Statement | | |
| 191 | 197 | |---|---| | |
| 192 | - | | "The network never holds a pooled key" | **True in `v1` for existing vaults:** per-deposit ephemeral keys `Q_setup_d` are permanently deleted at deposit (with zero custodial federation). **Honest disclosure:** Stage 1A still relies on `1-of-N` (`N=7`) open-cohort deposit attestation + `1-of-N` pre-committed online `BitVMX` verifiers + `1-of-M` (`M=3–5`) bonded fronting operators. Pure `0-of-N` unilateral exit requires a Bitcoin soft fork (`spec/01 Appendix A`). | | |
| 193 | - | | "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 EV (`≥ +0.0167 BTC` @ `500 sat/vB`), and anyone on Earth can detect fraud and relay it to all 7 verifiers. (`1-of-∞` permissionless BitVM2 requires `~45–100+ BTC` even at `M=3–5` and is unaffordable for a young project.) | | |
| 194 | - | | Proofs "end at Bitcoin's proof-of-work" | **True in Stage 1A:** Canonical `zBTC` state ordering, DA (`0x02`), and forced exits (`0x01`/`0x03`) are anchored directly on Bitcoin PoW with `0%` Zenon consensus trust (bounded by TVL-scaled `K` against private PoW forks). | | |
| 195 | - | | "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 is hard BTC. | | |
| 196 | - | | "Millions of transactions per second"; per-second streams | Zenon Dynamic Plasma at `~11.4s`/Momentum provides `~4.4` base transfers/s at the `2.1M` floor, `~8.8` tx/s at default `4.2M`, and a **real hard ceiling of `~1,050–1,200` tx/s** under `go-zenon`'s `8 MiB` `MaxMomentumContentBytes` cap (NOT `4,386` tx/s). Stage 1A rollup txs use `AccountBlock.Data` (`~28,480` Plasma, `~11.4s` soft confirmation, Bitcoin L1 finality on `0x02` batch anchor). | | |
| 197 | - | | "0 satoshi fees" | **0 satoshi BTC fee for Stage 1A feeless rollup transfers on Zenon** (costing `~28,480` refundable QSR/PoW Plasma; NOT native ZTS). Deposits, L1 forced exits (`0x01`), and fronting spreads pay Bitcoin L1 fees; under Zenon Plasma DoS, users bypass Zenon via Bitcoin L1 fees. | | |
| 198 | - | | "Oracle verified" | **Consistency-checked** via `scripts/verify_spec_bounds.py` against `SOURCED_`, `POLICY_`, and `PRE_MAINNET_TARGET_` inputs; not empirically audited until Stage 0/1A Signet & third-party audit gates pass. | | |
| 199 | - | | Omission of Zenon / ZNN / QSR / Pillars | Public pages MUST explicitly name **Zenon Network, ZNN, QSR, and Pillars**, and disclose `BitVMX-CPU`'s pre-mainnet status (`12–18+ mo` timeline) and `~65–72d` 100% bank-run exit queue. | | |
| 198 | + | | "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`). | | |
| 199 | + | | "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`.) | | |
| 200 | + | | 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). | | |
| 201 | + | | "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. | | |
| 202 | + | | "Millions of transactions per second"; per-second streams | Zenon 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`). | | |
| 203 | + | | "0 satoshi fees" / unbounded free transfers | **L1-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. | | |
| 204 | + | | "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. | | |
| 205 | + | | Omission of Zenon / ZNN / QSR / Pillars / Core `>= 29.0` | Public 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`). | | |
| 200 | 206 | ||
| 201 | 207 | --- | |
| 202 | 208 | ||
| 203 | - | ## 10. Written Answers to Consolidated Hostile Review (`R7`) | |
| 209 | + | ## 10. Written Answers to Consolidated Hostile Review (`R8`) & Historical `R7` Summary | |
| 204 | 210 | ||
| 205 | - | Every `R7` question against `v0` is answered normatively in `v1` without resorting to federated multisigs (full table in [`CHANGELOG.md`](./CHANGELOG.md)): | |
| 211 | + | Every one of the 12 mandatory questions raised in [`R8 §24`](./reviews/HOSTILE_REVIEW_R8_CONSOLIDATED.md) 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`](./CHANGELOG.md)): | |
| 206 | 212 | ||
| 207 | - | - **C-1 (ZNN/BTC forging price):** *Closed by removal.* `0%` ZNN in BTC safety; all `BitVMX` bonds (`2.60 BTC`/lane) and verifier escrows (`0.40 BTC`) are hard BTC. | |
| 208 | - | - **C-2 (Honest BLS certs over dishonest Zenon state):** *Closed by removal.* BLS Pillar committees and optimistic Zenon batches are deleted; Stage 1A verifies an immutable Bitcoin-anchored ZK validity rollup (`vk_STF`, `0-of-N` Zenon trust). | |
| 209 | - | - **C-3 (BitVM2 4.4–10× under-costed assert/disprove):** *Resolved by architecture switch.* Groth16 BitVM2 (`~1.0–1.3M vB`, `~45–100+ BTC` min bonds) is replaced with `n = 8` `BitVMX-CPU` (`RV32IM`) bisection (`~7.44 kvB`/tx TRUC v3, `~75 kvB` Prover / `~15 kvB` Verifier, `12.8–18.8 BTC` total pilot capital). | |
| 210 | - | - **C-4 (Never-deleted `N`-of-`N` `Q_graph`):** *Closed.* Because `vk_STF` never rotates with PoS epochs, vault graphs never expire; ephemeral `Q_setup_d` and `Q_lane` keys are **permanently deleted** after setup. Zero custodial multisigs. | |
| 211 | - | - **H-1 & H-2 (Free-delegation capture & 10-seat cert withholding):** *Closed by removal.* No Pillar finality committee exists in BTC custody. | |
| 212 | - | - **H-3 (Upgrade & Plasma authority = custody authority):** *Closed.* `vk_STF` is hard-pinned on Bitcoin L1 (`SporkAddress` has `0` BTC custody blast radius); Stage 0 pins all `SetPlasmaVariables` fields (`spec/05`); full Privileged Powers Table in §4.1. | |
| 213 | - | - **H-4 (Altruistic watcher `-1.46 BTC` EV & self-slash):** *Closed.* Pre-committed `BitVMX` verifiers receive `0.15 BTC` L1 directly from `Stake_r` (`1.85 BTC` burned), reclaim `100%` of `F_chal` from `ChalEscrow_{r,i}`, and remaining honest challengers split `0.55 BTC` from `B_zbtc` (`≥ +0.0167 BTC` positive EV even against `6-of-7` verifier collusion!). | |
| 214 | - | - **H-5 (Missing exit liveness & throughput math):** *Closed.* `1-of-M` (`M = 3–5`) operator liveness is Assumption #4 (§4); exact throughput (`0.111–0.185 BTC/day`) and 100% bank-run duration (`~65–72` days under `{0.50, 0.25, 0.25}` vaults; `~43–47d` under `{0.50, 0.50}`) are published alongside `Cap_TVL`. | |
| 215 | - | - **H-6 (April 2024 fees & June 2021 slow blocks):** *Closed.* Zero absolute CLTV cliffs (relative CSVs only); 100% TRUC v3 + `0`-sat `P2A` ephemeral anchors eliminate pre-signed fee cliffs; PTLC sized for `2.3×` slow blocks; sustained `500 sat/vB` 6.7-day bisection envelope disclosed explicitly. | |
| 216 | - | - **H-7 (Unpaid anchoring & mobile BTC proofs):** *Closed.* Bitcoin L1 IS the canonical rollup ordering & DA layer (`0x02`/`0x01`/`0x03`); no Zenon epoch-handoff anchoring is needed for BTC custody. | |
| 217 | - | - **H-8 (21M pre-mint blast radius inside `SettlementContract`):** *Closed by removal.* Stage 1A `zBTC` is accounted strictly in the Bitcoin-canonical Rollup SMT, never pre-minted into an upgradeable Zenon embedded contract. | |
| 218 | - | - **M-9 & M-10 (`11.4s` Momentum, Dynamic Plasma & honest `8 MiB` ceiling):** *Closed.* Honest `~4.4 / ~8.8 / ~1,050–1,200 tx/s` ceiling (`MaxMomentumContentBytes = 8 MiB`), `28,480` Plasma per `AccountBlock.Data` rollup tx, and full `SetPlasmaVariables` pinning. | |
| 219 | - | - **M-15 (Independent review):** *Enforced.* Stage 1A mainnet activation blocks strictly on Signet measurements and an independent third-party cryptography/Bitcoin-Script audit. | |
| 213 | + | 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. | |
| 214 | + | 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!). | |
| 215 | + | 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 **`AdmissionTicketUTXO`s** (`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`. | |
| 216 | + | 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`). | |
| 217 | + | 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`). | |
| 218 | + | 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!). | |
| 219 | + | 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`. | |
| 220 | + | 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). | |
| 221 | + | 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`). | |
| 222 | + | 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`). | |
| 223 | + | 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`). | |
| 224 | + | 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. | |
| 225 | + | ||
| 226 | + | *(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`](./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`.)* | |
| 220 | 227 | ||
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(mastere8986a6,origin/dev770e893, target mainnet release tag containing0aa299e,PR #138,#239/#299/#312) - Current
v2(v3.1.0-rfc) Integrity Manifest: generated deterministically at build time inpublic/raw/SHA256SUMS.txt(R8-L02) - Archived Previous Version (
v1/v3.0.0-rfc): Frozen byte-for-byte from commit6ab3999inversions/v1/(SHA-256 verified in CI; currentv2redlines directly againstv1). - Archived Initial Baseline (
v0/v2.5.0-rfc): Frozen byte-for-byte from commit7b47b8cinversions/v0/(SHA-256 verified in CI). - Consolidated Hostile Reviews:
R8(reviews/HOSTILE_REVIEW_R8_CONSOLIDATED.md) — independent multi-agent audit of archivedv1 (v3.0.0-rfc)(6 Critical, 10 High, 9 Medium, 2 Low; Stage 0 & 1B Conditional Pass, Stage 1A Fail as written); every confirmed R8 defect is remediated inv2 (v3.1.0-rfc), with exact line-level dispositions and verified pushbacks documented in §10 andCHANGELOG.md.R7(reviews/HOSTILE_REVIEW_R7_CONSOLIDATED.md) — historical audit of archivedv0(v2.5.0-rfc) that triggered the zero-federationv1redesign.
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:
- ZNN cannot secure BTC (
C-1): Real market liquidity (400k–727k ZNN/BTC, total ZNN market cap~25–33 BTC) makesv0's10,500 ZNN/BTCslashing deterrents worth only1.4–2.6%of stated value (~0.43–0.79 BTCfor 21 Pillars against a15 BTCcap). - Zenon consensus fails at
≤ 49%compromise (C-2, H-1, H-2, H-3): Currentgo-zenonis longest-chain DPoS with zero slashing, deterministic height-only grindablefindSeed, unweighted top-30groupAsybil amplification, and a 30-Momentum hard rollback cliff (protocol/chain_bridge.go) allowing permanent chain splits at49%; adding classical BFT (CommitteeRootSpork) breaks BOTH safety and liveness at> 33.3%. Single-keySporkAddress/CommunitySporkAddresscan mutate consensus code, and refundable QSR fusion allows whale Dynamic Plasma DoS. - 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 MBW-OTS) are4.4–10×larger thanv0's220 kvB, forcing~13.30–18.175 BTC/lane (~40–91 BTCin bonds even at bare-minimumM = 3–5, L = 1, exceeding ZNN's entire market cap!). - Never-deleted
N-of-NQ_graph&CommitteeIdentityKey(C-4, N-2) + fixed1.0 BTCbuckets: Rotating 30-day PoS committee roots forced never-deleted standing keys (sweep-all OR 1-key bricking at day 56), while fixed1.0 BTCbuckets rejected0.50and0.25 BTCexits.
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-zenonDPoS 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 BTCpayout,0satoshis 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_Bcreated att_0), (2) zero new signatures att_1(0-of-Nliveness) for an unknown future recipient Mike (P_Mike,0.25 BTCunknown att_0) while binding the0.75 BTCremainder 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 att_0cannot bind future unknown(P_Mike, 0.25 BTC). Corollary 1B: On Bitcoin Mainnet today, optimistic reimbursement bridges (BitVM2/BitVMX/BitVM3) are strictly bounded by1-of-Nephemeral setup deletion + challenger/verifier safety +1-of-Mpre-committed operator exit liveness.
Proposition 2 (Young Low-Cap Engineering / Capital / Trust Trilemma — 0 Federation, 0 Soft Forks,
~25–33 BTCZNN MCap): Under current Bitcoin Script & ZK-proving engineering with zero federated signers, zero Bitcoin soft forks, and0%ZNN slashing usable (~25–33 BTCZNN mcap), no current design fits inside2–20 BTCtotal hard capital while simultaneously achieving all three of:
- (A) Instant, non-expiring, fungible cross-depositor
zBTC(Alice + Bob → Mikewith zero sender-collusion risk),- (B)
1-of-∞permissionless challenging surviving200–500 sat/vBfee spikes (blocked by current Groth16 BitVM2's~40–91 BTCbond floor even atM = 3–5, L = 1; future reusable BitVM3-GC reduces on-chain dispute weights substantially but currently carries1-of-Ngarbler trust plus2.2–11.2+ TBone-time off-chain garbled-circuit DA acrossM × L × R × Nrounds — seespec/01 Appendix A.2), AND- (C)
0-of-Nunilateral arbitrary-amount Bitcoin L1 exit (blocked by Proposition 1;clArkachieves post-round0-of-Nonly by sacrificing (A) via discrete expiring VTXOs and pre-roundarkoorsender+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:
- Stage 0 (
0–6 months,0 BTCbridge custody risk,0–5 BTCvoluntary 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-CPUwrapped-SNARK verifier on Signet.
- Ship the Direct-on-L1 Bitcoin SPV Event Oracle (
- Stage 1 Decision Gate (Explicitly Governed by Hard-BTC Commitment, Engineering Scope & Timeline):
- Stage 1A — Primary Path for Pooled Fungible
zBTC(12–18+ monthsincl. audit for 4–6 engineers; requires12.80–18.80 BTClocked protocol capital →14.75–21.25 BTCfull single-dispute operational baseline ≈45–85%of ZNN's~25–33 BTCmarket cap, plus explicitM-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,480Plasma,0sat direct user BTC fee, NOT native ZTS; bounded against0x02DA spam via refundable500-sat new-leaf deposit +<= 1,000new leaves/6-block epoch cap). Canonical ordering, complete mutated-leaf DA (0x02 BATCH_DAcoveringAccounts,RollupLocks, and cooperativePendingExits+ 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-141wtxidwitness authentication (last0x6a24aa21a9edcoinbase output), and full stripped-vintracked-UTXO scanning. - Custody Engine (Right-Sized
BitVMX,n = 8,M = 3–5,L = 1,N = 7, Bitcoin Core>= 29.0): Open-sourceBitVMX-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 with0-satP2Aephemeral anchors on Core>= 29.0+ direct-to-miner rails;76.53 kvBProver /16.53 kvBVerifier incl.10 × 153 vBCPFP;F_chal = 0.40 BTCcovering500 sat/vBsustained,522 sat/vBbreak-even; widenedT_step = 72blks →T_take = 1,728,T_cooldown = 1,872,Retire = 2,016). Deleted-key{0.50, 0.25, 0.25}BTC vaults with acyclic pre-fundingvault_id(R8-C01), L1 consensusAdmissionTicketUTXOCap_TVLmutual exclusion (R8-C03), exact $2^M$ Hall's Marriage recoverability (R8-C04), explicitAssignedObligations (A)conservation (R8-C02), native Bitcoin L1Stake_rverifier payouts (0.15 BTCnative BTC to every active honest challenger viaChalPayoutEscrow—0%zBTCcrisis discount,+0.0645 BTCnet EV @500 sat/vB&+0.0232 BTC@750 sat/vB,890 sat/vBbreak-even,R8-H02/R8-N05), hard-partitionedB_grief(0.05 BTC) with active-operator-onlyExitSlotUTXO(R8-H01), cyclic(H(exitId)+r) mod Mpriority (R8-M03), andzbtc-vault-bundle-v1public DA archival (R8-H06). Pre-mainnet maturity explicitly disclosed; Gate G2 evaluates BitVMX-CPU vs BitVM3-GC prior to final freeze.
- 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 (
- Stage 1B — Explicit Alternative Gate (If Hard-BTC Budget
< 10–15 BTC,3–6 moLaunch Target, or0-of-NPost-Round Exit Outweighs Pooled Fungibility):- Do NOT under-bond
BitVMX/BitVM2. DeployclArk(Second bark/Ark Labs arkd) + Zenon SPV/PTLC (2–5 BTCactive ASP liquidity,0bonds), explicitly relinquishing global pooledzBTCin favor of discrete expiring VTXOs (disclosingarkoorsender+ASP collusion, automated watchtower refreshes, andlog2(N)L1 exit fees).
- Do NOT under-bond
- Stage 1A — Primary Path for Pooled Fungible
- 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
0x01exits (subject to1-of-Meligible operator liveness; no deleted-key L1 rollover). Identical-STFBitVMXexpansion (M = 5 → 20,L = 1 → 4,K = 42 → 144) uses strictlyN-of-NCohort 1 voluntary handover; changing custody backends (BitVM3-GC/BitVM2/ Appendix A Track B Pure Tier-0OP_CCV + OP_TXHASH + OP_VERIFY_STARKorOP_CATCovenant) ALWAYS launches a clean, non-commingledzBTC_v2instance with zero governance backdoor.
- Deleted-key Stage 1A vaults carry no expiry / no CLTV bricking and drain organically 1:1 to native BTC via
2. Normative Module Map & Authority Precedence
| Module | File | Normative Scope in v2 (v3.1.0-rfc) |
|---|---|---|
| Master | SPEC.md | Zero-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 1 | spec/01-bitcoin-taproot-vault-enforcement.md | Highest 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 2 | spec/02-btc-authorization-domain-and-spv.md | Stage 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 3 | spec/03-settlement-minted-zbtc-and-feeless-rails.md | Stage 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 4 | spec/04-bitcoin-anchoring-and-light-client.md | Zenon 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 5 | spec/05-go-zenon-upgrade-plan.md | Minimal 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. |
| Checker | scripts/verify_spec_bounds.py | Stdlib-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. |
| Changelog | CHANGELOG.md | Complete 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)
- Bitcoin L1 Consensus & Part 1 Vault Scripts (
spec/01,BTC-BITVMX-V1) — non-overridable custody layer. Hard-pinnedvk_STF, deleted-key Taproot graphs,AdmissionTicketUTXOs,StakeChain, andExitSlotUTXOrules cannot be overridden by any Zenon contract, Pillar, or spork. - Bitcoin-L1-Canonical Authorization & Rollup STF (
spec/02&spec/03) — deterministic state transition over Bitcoin L1 blocks (0x00..0x07). - Stage 0
go-zenonRuntime & 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. - 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):
- 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. - Users swap native BTC / Lightning against Zenon assets atomically via BIP-327 Taproot MuSig2 PTLCs (
<72> OP_CSVrefund leaf, mandatory automated high-fee RBF refund watchtower firing ath_conf + 72,T_znn >= now + 172,800s=48.0hachievingP(T_72 > 48h | 2.3× slowdown) < 10^{-6}and>= 9.25htail margin pastp99.9 = 38.75h) or SHA-256 HTLCs (hashType = 1,Δ_safety_blocks = 36, outboundΔ_safety_sec >= 86,400s=24.0hwithP(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)
- Alice confirms
1.0 BTC + feein her own self-custodial staging UTXOU_Alice_wallet(funding_txid:funding_vout, TapscriptOP_DROP <pk_Alice> OP_CHECKSIG). Becausefunding_txid:funding_voutis already confirmed on Bitcoin L1, each vault's domain-separated identifiervault_id = SHA256("zbtc:vault-id:v1" || funding_txid || funding_vout || vault_vout || amount_sats || opBitmask)is 100% deterministic before Taproot tree construction (completely acyclic — zeroSHA256(outpoint_d)cycle!). - Alice prepares
DepositTxspendingvin[0] = U_Alice_walletAND denomination-matchedAdmissionTicketUTXOs (vin[1] = Ticket_050,vin[2..3] = 2 × Ticket_025) →vout[0..2]= deleted-key vaults{0.50, 0.25, 0.25}BTC (3vaults/BTC, avg0.333 BTC,maxVaultDenom = 0.50 BTC) +vout[3]=69 BOP_RETURN "ZBTX" || 0x00 || recipientAcctHash(32B) || vaultParamsHash(32B). BecauseDepositTxconsumes live L1 tickets, two competing deposits racing acrossCap_TVLcannot both confirm on Bitcoin L1 — the loser'sDepositTxis rejected by Bitcoin consensus and Alice's BTC never leaves her wallet (R8-C03). - Alice +
N = 7presigners + all online operators (≥ M_min, recorded inopBitmask, checked against the exact $2^M$ Hall's Marriage InvariantR8-C04) presign theTakeTx_{d,j,l,r}graphs (M × L × R = 5 × 1 × 64 = 320pre-signedTakeTxs per vault ≈40 KB,< 100msMuSig2 ONCE at deposit, each recycling its exact matchingAdmissionTicketUTXOatvout[1]) using fresh per-deposit ephemeral keysQ_setup_d = MuSig2(P_{1..N,d}, P_{A,d}). - Each presigner permanently deletes
x_{i,d}and signs non-spending identity attestationσ_certover(txid_dep, Q_setup_d, opBitmask, vaultParamsHash), formingcertBlob = σ_cert(64B) || Q_setup_d(32B) || opBitmask(8B)(104 B ≤ 520 BBIP-342 stack limit). The completezbtc-vault-bundle-v1(scripts, control blocks, W-OTS/Lamport pubkeys, all presignedTakeTxs) is replicated and cryptographically verified across>= 3independent public archival mirrors (R8-H06). - Only after verifying all pre-signed
TakeTxs,σ_cert, and public bundle replication does Alice deletex_{A,d}, push[sig_Alice, certBlob, script, controlBlock]intoDepositTx.vin[0].witness, and broadcast. AtK = 18confirmations, the off-chain ZK prover (verified byvk_STF) scansDepositTxvia stripped block + BIP-141wtxid_depand credits1.0 zBTCto Alice (identical for Bob).
Flow B — L1-Subsidized Feeless zBTC Transfers on Zenon (AccountBlock.Data)
- Signed rollup transfers (
~110 B) are submitted in ZenonAccountBlock.Data, paying0satoshis direct user BTC fee,0burned ZNN/QSR, and21,000 + 68 × 110 = 28,480Plasma (14refundable fused QSR or~42.7MSHA3-256 PoW hashes at floor price1,000;~11.4ssoft confirmations). Honest Zenon transport throughput (4.4/8.82-blk tx/s,6.5/12.91-blk rollup sends/s,1,050–1,2008 MiBceiling) is paired explicitly inspec/03 §2.2with Bitcoin L1's hard physical0x02mutated-leaf DA ceiling (~166.7blended10 vBleaves/s at 100% of all Bitcoin blockspace;~1.67leaves/s at 1%) (R8-M08). - To prevent zero-cost
0x02L1 DA griefing (R8-M01), creating a brand-new SMT account leaf locks a refundable500-satzBTCleaf deposit (reclaimed on full account closure) and batches enforce a<= 1,000new 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-root0x02fee burn (R8-M02). - Batch proposers post
0x02 BATCH_DAevery~6Bitcoin blocks carrying complete mutated SMT leaves (Accounts,RollupLocks, cooperativePendingExits) + succinct embedded proofπ_batch. First valid0x02matchingR_{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)
- Bob deposits
1.0 BTC({0.50, 0.25, 0.25}vaults) →1.0 zBTCcanonical on Bitcoin L1 atK = 18confirmations. - Bob spends
0.5 zBTCfeelessly on Zenon (retaining0.5 zBTC). Even if49%–100%of Zenon Pillars are Byzantine,go-zenonpermanently splits across its 30-Momentum cliff, Dynamic Plasma spikes100,000×, orSporkAddressupgradesgo-zenonmaliciously: no attacker can forge Bob's signature on his remaining0.5 zBTCor mutatevk_STF. - Bob bypasses Zenon completely by broadcasting a
~150 vBBitcoin L10x01 FORCED_EXIT(0.50 BTC → P_Bob,grossSats >= MIN_EXIT_SATS = 100,000sats) creating a546-sat(2M_active + 1)-leafExitSlotUTXOwith cyclic operator priorityk_r = (H(exitId) + r) mod M_active. - Any
1-of-M(M = 3–5) active operator spendsExitSlotUTXOasvin[0]and pays0.50 BTC - f_opdirectly toP_Bobinvout[0](confirmed in ~1 Bitcoin block / ~10 minutes). - At
K = 18, the STF creditsReimbursementCredit[O_j] += 0.50 BTC, FIFO-assigns one0.50 BTCvaultU_dtoO_j(moving0.50 BTCfromReimbursementCredit→AssignedObligations (A)soV_unassigned + V_assigned == C + L + E + R + A + Bholds across the1,728-block gap!), andO_jclaimsU_dviaRoundTx_r → TakeTx(T_take = 1,728blks, verified byN = 7pre-committed verifiers undern = 8BitVMXbisection, recyclingTicket_050).
Flow D — Hostile Trace 2: Mike (Alice 1 + Bob 1 → Mike 2 → recovers 0.25 BTC When Zenon Signers Refuse to Sign)
- Alice (
1.0 BTC) and Bob (1.0 BTC) deposit into{0.50, 0.25, 0.25}vaults and send2.0 zBTCfeelessly to Mike on Zenon.- Once anchored in
0x02 BATCH_DAat depthK = 18, Mike's2.0 zBTChas 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
0x02posts, Mike self-includes Alice's and Bob's raw signed transfers directly on Bitcoin L1 via0x03 FORCED_TRANSFER! (Pre-L1-batch~11.4sZenon confirmation is honestly disclosed as an L1-subsidized soft confirmation; large receipts like2 BTCwait for L1 batch confirmation.)
- Once anchored in
- Zenon signers refuse to sign everything. Mike ignores Zenon completely and broadcasts L1
0x01 FORCED_EXIT(0.25 BTC → P_Mike, creatingExitSlotUTXO; Mike retains1.75 zBTC). - Any
1-of-M(M = 3–5) active operator spendsExitSlotUTXOand pays0.25 BTC - f_opdirectly toP_Mikeinvout[0](~10 minutes). Alice and Bob cannot front-run or steal it; Bitcoin L1 UTXO exclusion prevents double-fronting. - At
K = 18, the STF FIFO-assigns one0.25 BTCvault toO_j(moving0.25 BTCintoAssignedObligations (A); the remaining0.75 BTCof 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_jstill pays the exact amount inFrontingTx, accumulatesReimbursementCredit[O_j], and may consolidate< 0.25 BTCresiduals viaTransferCredit(from_op, to_op, amt)(R8-M04). Oldest-PendingExitcredit priority blocks operators from jumping ahead of waiting retail exits via fresh self-fronting (R8-N01). - Fee-spike & grief recovery: If Bitcoin fees spike above
f_op, Mike bumpsf_opvia0x06 EXIT_FEE_BUMP(or Dutch-auction fee schedule) or cancels after<288> OP_CSVvia Leaf2M_active(EXIT_CANCEL, restoring0.25 zBTC, NOT native BTC). If a rogue operator sweepsExitSlotUTXOwithout payingvout[0](even in a concurrentk = 20burst!), the STF atomically refunds100%ofgrossSatszBTCto every victim, distributes up to0.01 BTC/victim (pro-rata capped strictly atO_j's hard-partitioned0.05 BTCB_griefbuffer — zeroB_custodyoverflow!), suspendsO_j, and excludesO_jfrom all newExitSlotUTXOscripts (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:
- Zero Zenon Consensus or ZNN Market-Cap Trust (
0-of-NZenon — Survives 49%–100% Zenon Compromise): Neither Zenon Pillars,go-zenonDPoS/BFT, ZNN's~25–33 BTCmarket cap, nor ZenonSporkAddresssit 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. 1-of-NEphemeral Setup Deletion & Open-Cohort Attestation (N = 7Pilot): At least 1 ofNpresigners honestly deletes its per-deposit ephemeral sharex_{i,d}(depositor also participates and deletesx_{A,d}!) AND at least 1 ofNlong-term attestation keysid_iremains uncompromised while a cohort is open to new deposits. Compromising allNid_ikeys cannot sweep existing deleted-key vaults; losing 1 ofNid_inever bricks existing vaults (only halts new deposits onv1, requiring a clean non-commingledzBTC_v2).1-of-NPre-Committed Online Verifier Safety (N = 7Pilot, NOT1-of-∞): At least 1 ofN = 7independent pre-committed verifiers monitors Bitcoin within[0, 144]blks (~24h) and runsn = 8BitVMXbisection (20steps,T_step = 72blks,16.53 kvBtotal verifier weight incl.10 × 153 vBP2A 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 receives0.15 BTCin native Bitcoin L1 BTC directly fromStake_r(0%zBTCcrisis discount!), yielding+0.0645 BTCnet EV @500 sat/vB(+0.0232 BTCeven @750 sat/vB, break-even890 sat/vB, after CPFP and0.00285 BTClockup) even if6 of 7verifiers collude with the operator. If ALL7verifiers go offline or collude simultaneously during[0, 144], a cheating operator can steal≤ 0.50 BTC/round. SimultaneousM-operator attacks require0.483 BTC/lane(1.45 / 2.41 BTC) of liquid standby in at least 1 honest verifier (R8-H02).1-of-MPre-Committed Operator Exit Liveness (M = 3–5Pilot — Irreducible Corollary 1B Bound,R8-C06): Stage 1A vaults carry no CLTV expiration, but native Bitcoin L1 recovery strictly requires at least1-of-Mactive eligible operators (opBitmasksatisfying Hall's Marriage Invariant) with liquid BTC to front exits. If0-of-Moperators remain permanently offline (100%permanent disappearance), native BTC remains permanently unrecoverable on Bitcoin Mainnet today (0theft;EXIT_CANCELafter288blocks restoreszBTCinside the rollup, NOT native BTC on L1). This is an irreducible no-covenant boundary (Proposition 1).- Sustained Dispute Fee-Rate Envelope (
≤ 500 sat/vBfor10.0Consecutive Days on Core>= 29.0):F_chal = 0.40 BTCcovers76.53 kvBProver bisection (incl.10 × 153 vBP2A CPFP) up to522 sat/vBsustained across all20steps (10.0days); Verifier16.53 kvBis covered in native L1 BTC (0.15 BTC) up to890 sat/vBafter lockup cost. Historical peaks (1,805 sat/vBApril 2024 lasted~33h≈ 2–3 steps) fit comfortably; a hypothetical 10-day> 522 sat/vBspike erodes honest prover coverage. - Probabilistic PoW Finality & Conditional Private-Fork Heuristic (
K >= 18,R8-H03,R8-M07,R8-L01): DepthK >= 18provides probabilistic PoW finality under<50%honest hashrate (NOT absolute finality). The inequality0.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 × Subsidyplus external BTC-devaluation cost). Each lane pins(h_lane_init, H, D)withD(h) ≥ 0.50 × D(h_lane_init), supports interactive heaviest-chainwork competing-header comparison insidevk_STF, and enforces a fail-closedDEEP_REORG_HALTcircuit breaker with>= 144-block rollback snapshots if a>= Kreorg ever occurs. - Immutable
vk_STFBug Risk (R8-H08): Becausevk_STFis immutable on existing vaults (zero governance override), a soundness or completeness bug invk_STFcould 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). - Bank-Run Recycling Queue (
~94–104Days for 100% Run atM = 3–5, L = 1,T_cooldown = 13.0d): While individual exits front in10m up to available operator float (101–104d2.20–3.00 BTC), a 100% bank run recycles at0.077 BTC/day(M = 3, `for10 BTCuser cap) or0.128 BTC/day(M = 5,94–104d62–68dfor15 BTCuser cap) under{0.50, 0.25, 0.25}vaults (orunder{0.50, 0.50}vaults). Oldest-PendingExitcredit priority blocks self-fronting queue jumping (R8-N01), while secondary-marketzBTC` discounting during prolonged queues remains an explicit economic risk. - Stage 1B (
clArk) Alternative Assumptions (If Chosen Instead): Zero operator bonds and pure0-of-Npost-round unilateral exit until VTXO expiry, BUT sacrifices pooled fungiblezBTC, carries hard VTXO expiry (log2(N)L1 branch exit fees, requiring watchtower refresh), requires100%ASP liquidity per cycle, and exposes pre-roundarkoortransfers tosender + ASPcollusion.
4.1 Complete Privileged Powers Table (H-3 Closed — ZERO Custodial Authority)
| Power / Action | Holder | Threshold | Timelock | Maximum Effect / Blast Radius on Stage 1A BTC Custody |
|---|---|---|---|---|
Spend Existing Stage 1A BTC Vaults (U_d) | NOBODY (ephemeral Q_setup_d deleted) | N/A | N/A | 0 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 Vaults | NOBODY (vk_STF hard-pinned at t = 0) | N/A | N/A | 0 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 GovernanceContract | 1-of-1 today | SporkMinHeightDelay = 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 liveness | T_take = 1,728 blks; T_cooldown = 1,872 blks | Zero 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 blks | Any 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 mainnetv1Momentums capped at100blocks/Momentum) andorigin/dev(770e893, carryingDynamicPlasmaSpork,PtlcSpork,Libp2pSpork). (Note: upstream commit0aa299e,PTLC PR #138mainnet merge/spork activation, and open issues#239,#299, and#312are NOT yet active ongo-zenonmainnet and remain explicit Stage 0 upstream release gates — Gate G6.) - Stage 0 Hard Preconditions (
spec/05): (1) First tagged mainnetgo-zenonrelease containing0aa299e; (2) closure of upstream issues#239(FIFO panic-stall deterministic failed receive, B1),#299, and#312; (3) mainnet merge & activation ofPTLC PR #138(PtlcSpork) andDynamicPlasmaSporkwith complete 5-parameterSetPlasmaVariablespinning (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.Dataand Bitcoin L1 — requiring zerogo-zenonconsensus hard fork beyond Stage 0.
6. Upstream Amendment Register (v2 Zero-Federation Scope)
| ID | Upstream Target | Status in v2 | Normative Requirement |
|---|---|---|---|
| A-SPEC-1, A-SPEC-2, A-SPEC-6 | Project Zeno optimistic bridge framework | Not required in v2 | Stage 0 uses direct Event-Validity SPV; Stage 1A uses Bitcoin-L1-canonical ZK validity (0x00..0x07). |
| A-SPEC-4 | Deterministic Exit ID | Required (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-1 | Bitcoin Refund / Exclusion Rules | Required (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-1 | TokenContract.IssueMinted | Retired in v2 | Stage 1A zBTC balances live in the Bitcoin-canonical Rollup SMT (NOT pre-minted inside a Zenon embedded contract, eliminating H-8 entirely!). |
| A-PILLAR-1 | go-zenon pillars.go BLS12-381 & 72d lock | Not required in v2 | Zenon 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)
| Stage | Timeline & Full Hard-BTC Capital | Normative Scope & Blocking Exit Criteria | Zero-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.mdverbatim: 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 streams | Zenon 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 transfers | L1-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.0 | Public 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):
R8-C01(CircularSHA256(outpoint_d)Lamport cycle): Confirmed & fixed (Amendment A1). ReplacedSHA256(outpoint_d)with acyclic pre-fundingvault_id = SHA256("zbtc:vault-id:v1" || funding_txid || funding_vout || vault_vout || amount_sats || opBitmask)bound to the already-confirmedU_dep_walletoutpoint (spec/01 §2.2, §3.3).TakeTxis~3,142–3,166 vB <= 3,200 vBTRUC v3 parent with258peak stack and zero unconfirmed TRUC child chaining.R8-C02(MissingAssignedObligations (A)in conservation law): Confirmed & fixed (Amendment A2). Added explicitAssignedObligations (A)SMT namespace and amended conservation toV_unassigned + V_assigned = C + L + E + R + A + Bwith atomic transitions forfifo_assign,take_confirmed,0x07 release_assignment,disprove_dual_slash,lamport_equivocation_slash(including cross-operator equivocation recovery),retire, andreorg(spec/03 §2.1, verified explicitly inverify_spec_bounds.pyacross theT_takegap!).R8-C03(Deposit race pastCap_TVLburning BTC): Confirmed & fixed (Amendment A3). EnforcedCap_TVL_totalmutual exclusion directly at Bitcoin L1 consensus via denomination-matchedAdmissionTicketUTXOs (1 × Ticket_050 + 2 × Ticket_025consumed asDepositTx.vin[1..3]and recycled atTakeTx.vout[1],spec/01 §2.2), plus optional two-stagePreDepositUTXO. Competing deposit losers never spendU_dep_wallet.R8-C04(Global round cap violates Hall's Marriage Theorem): Confirmed & fixed (Amendment A4). Mandated the exact $2^M$ Hall's Marriage Invariant across alldeposit_admit,operator_retire,round_consume, andoperator_slashtransitions (<= 31subset checks atM = 5), tightest-slack FIFO prioritization, and retirement unlock gating (spec/01 §6.2, tested inverify_spec_bounds.py).R8-C05(BIP-141 witness completeness, untagged spends,0x02DA schema): Partially confirmed & fixed (Amendment A5). Whilev3.0.0-rfcspec/02:L115already mandated BIP-141wtxidverification,v3.1.0-rfccloses all 3 real gaps: (a) extract witness commitment from the LAST coinbase output starting with0x6a24aa21a9ed(len >= 38 B, coinbasewtxid = 0x00^32) and formally separate fail-closed (REFUSED_DATA_UNAVAILABLE) on missing/unauthenticated witness from deterministic skip onwtxid-authenticated malformed payload; (b) scan everyvinof every stripped transaction for untagged spends of tracked protocol UTXOs; (c) expand0x02 BATCH_DAbinary schema to serializeAccounts,RollupLocks, and cooperativePendingExits(spec/02 §3.1–3.2).R8-H01&R8-N05(Concurrent/post-suspensionExitSlotUTXOgriefing draining0.55 BTCverifier pool): Confirmed & fixed (Amendment A7). Hard-partitionedB_grief(0.05 BTC) fromB_custody(0.55 BTC) with pro-rata burst capping (0sats ever debited fromB_custody), excluded suspended operators from all newExitSlotUTXOTaproot trees (2M_active + 1leaves), AND moved all verifier bounties onto Bitcoin L1Stake_r(0%coupling toB_zbtc—R8-N05eliminated completely!).R8-H02(Crisis-discountedzBTCverifier payouts, CPFP/lockup EV,M-simultaneous dispute liquidity): Confirmed & fixed (Amendment A7). RestructuredDisproveTx_{r,i}/TimeoutSlashTx_{r,i}onStake_r (2.00 BTC)to pay0.15 BTCin native Bitcoin L1 BTC to EVERY active honest challenger via6ChalPayoutEscrow_{r,j}outputs paired withChalProofConnector_{r,j}(0.95 BTCminimum immediate burn, zero2^7explosion!). Net honest verifier EV including16.53 kvBP2A CPFP +0.00285 BTClockup is+0.0645 BTC@500 sat/vBand+0.0232 BTC@750 sat/vB(890 sat/vBbreak-even,0%zBTCdiscount!), while combined attacker P&L stays-2.00to-1.10 BTCon L1 alone (-2.55to-1.65 BTCincl.B_custody). Multi-dispute verifier liquidity (1.45 / 2.41 BTCper honest verifier acrossM = 3 / 5simultaneous disputes) is explicitly budgeted inspec/01 §6.R8-H05(RV32IM$8^9$ instruction budget contradiction): Confirmed & fixed (Amendment A9). Clarified normatively acrossspec/01 §3.2,spec/02 §3.2, andspec/05 §3thatBitVMX-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 provinginit_steps + exec_steps <= 0.5 × 8^9, elsel = 10or BitVM3).R8-H03&R8-M07(Private-fork bound vs Budish subsidy offset, canonical fork check,>= Kreorg): Confirmed & fixed (Amendment A8). Relabeled0.50 × K × Subsidy > Cap_TVL_totalhonestly as an unpublished-fork opportunity-cost heuristic (printing Budish net flow-cost sensitivity inverify_spec_bounds.py), raised the minimum floor toK >= 18coveringCap_user + M × B_zbtc, specified interactive heaviest-chainwork competing-header comparison insidevk_STF, and mandated a fail-closedDEEP_REORG_HALTcircuit breaker with>= 144-block rollback snapshots (spec/02 §4).R8-H07(Stage 0 PTLC & LN HTLC Erlang tail failure): Confirmed & fixed (Amendment A10). Raised Stage 0T_znnfrom30hto>= 48h(172,800s,P(T_72 > 48h | 2.3×) < 10^{-6}) and outbound LN HTLCΔ_safety_secfrom6hto>= 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).R8-N01&R8-M01(Bank-run self-fronting arbitrage & feeless0x02DA spam): Confirmed & fixed (Amendment A11). Enforced oldest-PendingExittimestamp priority for reimbursement credit eligibility + optional Dutch-auction fee discovery (R8-N01), reframed Zenon transfers as L1-subsidized soft preconfirmations, and bounded0x02new-leaf DA spam via a refundable500-satzBTCnew-account leaf deposit +<= 1,000new leaves/6-block epoch cap + deterministic slotted batcher priority (spec/03 §2.2–2.4).BitVMX-CPUvsBitVM3-GCengineering 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 a1-of-Ngarbler trust assumption AND require~2.2–11.2+ TBof one-time off-chain garbled-circuit DA acrossM × L × R × N = 5 × 1 × 64 × 7 = 2,240rounds (1–5 GBper round!). Stage 0 runs an explicit Gate G2 evaluation comparing compiledRV32IMBitVMX-CPU traces against emerging reusable DV-SNARK BitVM3-GC before locking Stage 1A's final custody engine — and Stage 2 cleanly supports a non-commingledzBTC_v2upgrade 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.