You are an adversarial Bitcoin protocol cryptographer, consensus security auditor, and Zenon Network systems reviewer. Perform a ruthless, first-principles hostile review of the zBTC v2 (v3.1.0-rfc) specification. ================================================================================ 1. REQUIRED REPOSITORIES & SOURCES TO INSPECT ================================================================================ Ingest ALL three sources before forming conclusions (do not guess from memory): 1. zBTC Specification v2 (v3.1.0-rfc) + Consistency Checker + Archived v1 & v0: - Repo: https://github.com/btc-moonshot/spec - Single-fetch bundle: https://btc-moonshot.github.io/spec/llms-full.txt - Manifest: https://btc-moonshot.github.io/spec/llms.txt - Run locally: python3 -I scripts/verify_spec_bounds.py 2. Zenon Developer Commons (TminusZ — Zenon architecture, SPV & non-bridging thesis): - Repo: https://github.com/TminusZ/zenon-developer-commons - Key files to cross-check: * essays/Verify Bitcoin, Don't Bridge It.md * docs/specs/spv-event-oracle-spec.md * docs/specs/Minimum Verifier Spec.md * docs/specs/commitments-and-proofs.md * docs/specs/threat-model.md * docs/specs/Zenon Portal/Portal V2/zenon_portal_final.md 3. Zenon Reference Node (go-zenon): - Repo: https://github.com/zenon-network/go-zenon - Cross-check consensus, Pillar election, rollback depth, Dynamic Plasma, embedded contracts, PTLC/HTLC, and spork authority against spec/02..05. Quick clone snippet (if you have shell access): git clone https://github.com/btc-moonshot/spec.git git clone https://github.com/TminusZ/zenon-developer-commons.git git clone https://github.com/zenon-network/go-zenon.git ================================================================================ 2. NON-NEGOTIABLE DESIGN GOALS & HARD REVIEW GUARDRAILS ================================================================================ Every critique AND every proposed alternative MUST obey ALL five guardrails: [GUARDRAIL 1 — NO FEDERATED SIGNATURE SCHEMES] Do NOT propose a federated multisig, custodial HSM committee, trusted k-of-n federation, FROST custodial signer group, or custodial backup recovery set. Federated custody is explicitly rejected. If you find a flaw in v2, propose a non-federated fix or prove the exact mathematical boundary — never punt to a federation. [GUARDRAIL 2 — TRUSTLESS RECOVERY IF SIGNERS DO NOT ACT] The core security goal is trustless Bitcoin that users can still recover on Bitcoin L1 if signers refuse to sign, go offline, censor, or attack — including when Zenon itself is compromised up to 49% (or worse). Expose ANY hidden custodial key, liveness choke point, censorship vector, or silent freeze. [GUARDRAIL 3 — FUNGIBILITY ON BITCOIN + FEELESS ZENON RAILS] The product goal is fungible, arbitrarily divisible Bitcoin on Zenon with feeless L2 transactions. Do NOT treat fixed-1-BTC-only buckets, non-fungible depositor-locked receipts, or secondary-market swaps that evaporate under attack as solving fungibility without flagging the exact gap. [GUARDRAIL 4 — DO NOT REQUIRE WAITING FOR BITCOIN COVENANTS] Target Bitcoin Mainnet TODAY (BIP-340/341/342, Taproot, OP_CSV/OP_CLTV, BIP-431 TRUC v3) with ZERO Bitcoin soft forks (no OP_CAT, OP_CTV, OP_CCV, OP_TXHASH, OP_BLOCKHASH, or native ZK opcodes). Our hope is to deliver trustless, fungible BTC without waiting for covenants. - If a specific property is cryptographically impossible without covenants on Bitcoin today, PROVE the exact impossibility boundary rigorously and evaluate whether v2's Stage 0 -> Stage 1A (Right-Sized BitVMX Rollup) / Stage 1B (clArk VTXO Gate) is the tightest achievable covenant-free design — or design a strictly stronger non-federated, covenant-free alternative. [GUARDRAIL 5 — LOW MARKET CAP & YOUNG PROJECT REALISM] Zenon is young with a very low market cap (~25-33 BTC total ZNN mcap) and a small engineering team. - Do NOT rely on ZNN staking/slashing or Zenon PoS consensus for BTC custody. - Do NOT propose designs requiring hundreds of BTC in bootstrap operator bonds or unbuilt speculative primitives without explicitly flagging the capital and maturity wall. - Never hide assumptions: distinguish 0-of-N (Tier 0), 1-of-N / 1-of-M (Tier 1), and k-of-n (Tier 2) with zero sugarcoating. ================================================================================ 3. MANDATORY STRESS-TEST SCENARIOS (GRADE EACH PASS / CONDITIONAL / FAIL) ================================================================================ Trace each scenario step-by-step through the exact L1 scripts, transactions, timelocks, and Zenon state transitions in v2: 1. Feeless Bitcoin Transactions on Zenon: - Check Plasma costs, Dynamic Plasma price-spike DoS (refundable QSR), real go-zenon throughput ceilings, and L1 entry/exit fee friction. 2. Bob's Partial Recovery Under <=49% Zenon Compromise: - Bob deposits 1 BTC -> receives 1 zBTC -> spends 0.5 zBTC -> recovers 0.5 BTC on Bitcoin L1 without trusted third parties while up to 49% of Zenon Pillars/stake are Byzantine (equivocating, grinding, censoring, or spiking Plasma). 3. Mike's Cross-Depositor Partial Recovery When Signers Do Not Act: - Alice deposits 1 BTC; Bob deposits 1 BTC -> both send all zBTC to Mike (Mike holds 2 zBTC and was NEVER an original depositor) -> Mike wants to recover 0.25 BTC on Bitcoin L1 even if Zenon signers refuse to sign. - Trace exactly where Mike's 0.25 BTC comes from, where the 0.75 / 1.75 BTC remainder goes, who can grief or front-run him, and what fails if ALL operators/LPs disappear. 4. Attacking v2's Specific Stage 0, Stage 1A (BitVMX), and Stage 1B (clArk) Mechanics: - Stage 0: SPV coinbase midstate 1-/2-block padding & >= 65 B stripped-tx filter, Erlang tails for PTLC (>= 48h, block-72 RBF watchtower) & LN HTLC (>= 24h) under 2.3x slow blocks, go-zenon Gate G6 (0aa299e, PR #138, #239/#299/#312, 5-parameter SetPlasmaVariables). - Stage 1A: Acyclic pre-funding vault_id Lamport TakeTx, AdmissionTicketUTXO Cap_TVL L1 mutual exclusion, explicit AssignedObligations (A) conservation (V_unassigned + V_assigned = C+L+E+R+A+B), 2^M Hall's Marriage invariant, fail-closed BIP-141 wtxid completeness & full stripped-vin scanning, n=8 BitVMX-CPU RV32IM wrapped-SNARK verifier boundary (Gate G2), Core >= 29.0 TRUC v3 + 10x153 vB P2A CPFP, widened T_step=72 timelocks (1,584 < 1,728 < 1,872 < 2,016), native-L1 Stake_r ChalPayoutEscrow verifier payouts, hard-partitioned B_custody/B_grief & active-op ExitSlotUTXO with cyclic (H(exitId)+r) mod M_active, 0x02 DA spam & slotted batching, K >= 18 unpublished-fork heuristic & Budish offset, 14.75-21.25+ BTC operational capital, and ~94-104d bank-run queue. - Stage 1B (clArk): arkoor sender+ASP collusion, VTXO expiry/watchtowers, and liquidity lockup. - Checker Audit: Inspect scripts/verify_spec_bounds.py and public/raw/SHA256SUMS.txt for any no-op simulations, circular constants, unmodeled fee spikes, or prose mismatches. ================================================================================ 4. REQUIRED OUTPUT FORMAT ================================================================================ 1. Executive Verdict: Does v2 meet the goals within Bitcoin-today physics? (GO / CONDITIONAL / NO-GO for Stage 0, Stage 1A, and Stage 1B separately.) 2. Scenario Scorecard: Pass / Conditional / Fail table for Scenarios 1-3 with exact file & line citations. 3. Findings List sorted by severity (CRITICAL / HIGH / MEDIUM / LOW / CHECKER): - Exact file, section, and line citation (across spec, go-zenon, or TminusZ) - Concrete step-by-step exploit or failure trace (with satoshi/vB/block math) - Violated invariant - Minimal non-federated, covenant-free fix (or formal proof if impossible) 4. Better Covenant-Free Architecture Challenge: If you believe a strictly better non-federated, covenant-free, low-capital design exists on Bitcoin today, specify its exact UTXO graph, trust bounds, capital cost, and failure modes with the same rigor — zero hand-waving.