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

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

[changelog]

Part 3: Stage 0 Erlang-Hardened PTLC/HTLC Swaps, Stage 1A Sovereign Rollup STF & Feeless Zenon Rails, and Stage 1B clArk Coordination

Document Class: Normative Settlement, Rollup State Transition & Feeless Payment Specification (v2 / v3.1.0-rfc — Zero-Federation Phased Architecture; supersedes archived v1 v3.0.0-rfc and v0 v2.5.0-rfc)
Custody Posture: ZERO federated signers, ZERO ZNN governance/slashing custody coupling, ZERO federated multisig or embedded-contract pre-minting.
Consistency Checker: scripts/verify_spec_bounds.py


1. Stage 0: Erlang-Hardened Non-Custodial PTLC & HTLC Atomic Swaps (PtlcSpork, M-4, R8-H07)

Stage 0 launches with 0 BTC protocol custody (0–5 BTC voluntary LP capital), strictly honoring zenon-developer-commons (essays/Verify Bitcoin, Don't Bridge It.md). Native BTC stays in user self-custody on Bitcoin L1 or Lightning; Zenon swaps native ZNN/QSR/ZTS assets atomically via PtlcContract and HtlcContract.

Stage 0 Scope & Conditional Atomicity Honesty (R8-H07): Stage 0 atomic swaps do not create pooled, fungible zBTC on Zenon. A counterparty LP is required for every swap, and under a severe Zenon attack rational LPs pull liquidity. Furthermore, cross-chain swap atomicity is explicitly conditional on bounded Bitcoin/Zenon block progress and timely automated refund broadcast — never unconditional against arbitrary unbounded chain stalls.

1.1 Erlang-Hardened BIP-327 Tweaked Taproot PTLC Swap (M-4, R8-H07 Closed)

Protocol (Alice sells BTC on Bitcoin L1; Bob sells Zenon asset on Zenon; Bob holds secret scalar $t \in \mathbb{Z}_n^*$):

  1. Setup: Bob sends compressed 33-byte point $T = \text{compress}(t \cdot G)$ to Alice.
  2. Bitcoin Taproot Funding (>= 72-Block CSV): Compute $P_{\text{swap}} = \text{MuSig2_KeyAgg}(pk_A, pk_B)$, Tapscript refund leaf $L_{\text{ref}} = \text{<72> OP_CSV OP_DROP <pk_A> OP_CHECKSIG}$, tweak $t_{\text{tap}} = H_{\text{"TapTweak"}}(x(P_{\text{swap}}) \parallel \text{TapLeaf}(L_{\text{ref}}))$, and $Q_{\text{swap}} = P_{\text{swap}} + t_{\text{tap}} \cdot G$ with BIP-327 accumulated tweak t_acc and parity g_key. Alice funds 0x51 0x20 || x(Q_swap). Let $h_{\text{conf}}$ be Bitcoin confirmation height and now_unix be current UTC Unix seconds.
  3. Absolute Unix Timestamp Lock & Erlang-Safe >= 48h Slow-Block Margin (R8-H07):
    • go-zenon's PtlcContract.Create compares momentum.Timestamp.Unix() >= param.ExpirationTime (origin/dev:vm/embedded/implementation/ptlc.go:326), requiring an absolute Unix timestamp (NEVER a relative duration!).
    • Under Poisson block arrivals at June 2021's worst daily slowdown (2.3× nominal = 1,380s/blk), an old 30h lock suffered P(T_72 > 30h | 2.3×) = 22.47% (~22.34% in R8's continuous approx) refund-race exposure (R8-H07). Therefore v3.1.0-rfc mandates T_znn_sec >= 172,800 seconds (48.0h, ~15,158 Momentums at observed 11.4s/Momentum) and expirationTime = now_unix + T_znn_sec.
    • Exact Erlang Tail Proof (scripts/verify_spec_bounds.py): At 2.3× slowdown (λ = 1/1,380 blks/s), the 99.9th percentile of 72 blocks is p99.9(T_72) = 38.75h, leaving >= 9.25h wall-clock tail margin before 48.0h and reducing tail exceedance to P(T_72 > 48h | 2.3×) < 10^{-6} (~9.5 × 10^{-8})!
    • Bob calls PtlcContract.Create(expirationTime = now_unix + 172800, pointType = 2, pointLock = compress(T), destination = Alice_Addr) (origin/dev:vm/embedded/definition/ptlc.go:118-129).
  4. Mandatory Automated High-Fee RBF Refund Watchtower & Grief Disclosure:
    • Alice sends BIP-327 adaptor partial signature $\tilde{s}_A$ within <= 6 Bitcoin blocks of Zenon PTLC confirmation ($R' = R_A + R_B + T$ with parity $g_R$, $\tilde{s} = \tilde{s}A + \tilde{s}B + e \cdot g{\text{key}} \cdot t{\text{acc}} \pmod n$).
    • Mandatory Watchtower Rule (R8-H07): Alice MUST NOT rely on Bob voluntarily honoring a h_conf + 66 cutoff. Alice's wallet/watchtower MUST automatically broadcast her <72> OP_CSV refund transaction immediately at height h_conf + 72 with aggressive RBF fee-bumping (and direct-to-miner backup if mempools exceed 200 sat/vB) so Bob cannot confirm a late claim near 48h!
    • Explicit Grief Disclosure: Because PtlcContract has no early reclaim prior to ExpirationTime, if Alice withholds $\tilde{s}_A$, Bob's Zenon funds remain grief-locked for the full 48h duration (zero theft, pure time-lock grief). Production LPs bound this via small per-peer swap limits or reputation/Lightning Hold Invoices.
  5. Atomic Claim & Secret Extraction: Bob completes $s = \tilde{s} + g_R \cdot t \pmod n$ with a <pk_B> CPFP anchor prior to Alice's block-72 watchtower refund. Alice extracts $t_{\text{ext}} = g_R \cdot (s - \tilde{s}) \bmod n$, checks compress(t_ext * G) == PointLock, and calls PtlcContract.Unlock(ptlcId, t_ext) (origin/dev:vm/embedded/implementation/ptlc.go:82-97).

1.2 Erlang-Hardened HTLC & Lightning Submarine-Swap Gateway (R8-H07)

  • Hash Type: ALL Bitcoin/Lightning HTLCs MUST use hashType = 1 (HashTypeSHA256, origin/dev:vm/embedded/definition/htlc.go:92).
  • Slowdown-Adjusted Erlang-Safe Unix-Second Delta (R8-H07): At 100% hashrate, 36 nominal blocks (6h mean) exceed 6h with probability P(T_36 > 6h | 1.0×) = 47.78%! Therefore, while Bitcoin/Lightning block delta remains Δ_safety_blocks = 36, Zenon wall-clock safety delta MUST be Δ_safety_sec >= 86,400s (24.0h) — exceeding p99.9(T_36 | 2.3×) = 22.01h with P(T_36 > 24h | 2.3×) < 0.0002 (and < 10^{-20} at 1.0× nominal!):
    • Inbound (LN → Zenon): User pays Gateway's LN Hold Invoice FIRST; ONLY AFTER Hold Invoice reaches ACCEPTED with remaining_cltv_blocks >= 72 (2 × Δ_safety_blocks) does Gateway lock Zenon funds in HtlcContract with expirationTime_unix <= now_unix + (remaining_cltv_blocks - 36) * 600 (ensuring >= 36 Bitcoin blocks remain after Zenon expiry for Gateway's LN claim/cancel). Gateways MUST enforce <= 5 concurrent pending hold invoices, <= 0.10 BTC exposure per peer, and a 5-minute cancel TTL.
    • Outbound (Zenon → LN): User locks Zenon funds (hashType = 1, expirationTime_unix >= now_unix + 2 * 86,400 = now_unix + 172,800 = 48h); Gateway pays a BOLT-11 invoice whose CLTV expiry satisfies now_unix + (cltv_blocks * 600 * 2.3) <= expirationTime_unix - 86,400 (leaving >= 24h Erlang-safe wall-clock margin even under 2.3× slowdown!), learns preimage $r$, and unlocks Zenon HtlcContract.

2. Stage 1A: Sovereign Rollup STF $\mathcal{F}$ & L1-Subsidized Feeless Zenon Sequencer Rails

In Stage 1A, zBTC is a Bitcoin-Anchored Sovereign ZK Validity Rollup backed by right-sized BitVMX (n = 8, M = 3–5, N = 7) deleted-key vaults (spec/01). Zero federated signers and zero ZNN governance keys touch BTC custody or zBTC supply.

2.1 Immutable Rollup SMT State Schema & Exact Conservation Law With AssignedObligations (A) (R8-C02, R8-H01)

The canonical zBTC ledger state $R_h$ is a 256-bit Sparse Merkle Tree (SHA-256 / Poseidon2) maintained deterministically by $\mathcal{F}$ over Bitcoin L1 blocks (spec/02 §3):

SMT NamespaceKeyValue FieldsInvariants
Accounts (C)acctId (u32){ pubkey: bytes32 (BIP-340), balanceSats: u64, nonce: u32, leafDepositSats: u64 }balanceSats >= 0; nonce strictly monotonic (+1/tx); brand-new leaf locks refundable 500-sat leafDepositSats (R8-M01, counted in C).
Vaults (V)vaultId (bytes32){ outpoint(36B), denomSats: u64 ∈ {50_000_000, 25_000_000}, opBitmask: u64, status: UNASSIGNED | ASSIGNED(opId, lane, round) | REIMBURSED | SLASHED_EQUIV }Partitioned into $V_{\text{unassigned}}$ and $V_{\text{assigned}}$; satisfies exact $2^M$ Hall's Marriage Invariant (spec/01 §6.2).
PendingExits (E)exitId (bytes32){ acctId, grossSats >= max(dust, 100_000), maxOpFeeSats, createdBtcHeight, destScriptPubKey, cancelPubKey, exitSlotOutpoint(36B), status: OPEN | COMPLETED | CANCELLED }Created ONLY by burning grossSats from Accounts[acctId] via 0x02 or L1 0x01; MIN_EXIT_SATS = 100,000 sats (0.001 BTC, R8-M05).
RollupLocks (L)lockId (bytes32){ senderAcctId, destAcctId, amountSats, expiryBtcHeight, lockType: HTLC | PTLC, lockDigest(33B) }First-class rollup opcodes (RollupHTLC, RollupPTLC) serialized in 0x02 BATCH_DA (R8-C05).
OperatorStateopId (u32){ active: bool, lanes: [L], remainingRounds: u32, suspended: bool }Auto-suspended & excluded from all new ExitSlotUTXOs if B_grief < 0.05 BTC or B_custody < 0.55 BTC.
ReimbursementCredit (R)opId (u32){ creditSats: u64, oldestBackedExitHeight: u32 }Incremented ONLY on K-deep verified ExitSlotUTXO payout (vout[0]); supports signed TransferCredit(from_op, to_op, amt) (R8-M04) and oldest-PendingExit priority (R8-N01).
AssignedObligations (A)vaultId (bytes32){ opId: u32, lane: u8, round: u16, denomSats: u64, assignedHeight: u32 }Explicitly tracks pending TakeTx claims across the T_take = 1,728-block gap (R8-C02)! Created atomically on FIFO assignment (R -> A), destroyed on TakeTx confirmation (V_assigned, A -> 0) or 0x07 release (A -> R).
LockedOperatorCollateral (B)(opId, lane){ bCustodySats: u64 (floor 55_000_000), bGriefSats: u64 (floor 5_000_000) }Hard-partitioned (R8-H01, R8-N05): bCustodySats (0.55 BTC) NEVER debited by ExitSlotUTXO griefing; bGriefSats (0.05 BTC) exclusively absorbs grief penalties. Total B_zbtc = 0.60 BTC/lane.

Amended Global Solvency Conservation Invariant (R8-C02 Closed — Checked on EVERY State Transition $R_{h-1} \to R_h$): $$\underbrace{\sum_{v \in \text{Unassigned}} D_v}{V{\text{unassigned}}} ;+; \underbrace{\sum_{v \in \text{Assigned}} D_v}{V{\text{assigned}}} ;=; \underbrace{\sum_{a \in \text{Accounts}} (\text{bal}a + \text{dep}a)}{C} ;+; \underbrace{\sum{\ell \in \text{Locks}} \text{amt}\ell}{L} ;+; \underbrace{\sum_{e \in \text{Exits}{\text{OPEN}}} \text{gross}e}{E} ;+; \underbrace{\sum{o} \text{Credit}o}{R} ;+; \underbrace{\sum_{v \in \text{Assigned}} \text{Obl}v}{A} ;+; \underbrace{\sum_{o,l} (B_{\text{custody}} + B_{\text{grief}})}_{B}$$

Exact Atomic Conservation Matrix Across Every Lifecycle Transition:

Transition$\Delta V_{\text{unassigned}}$$\Delta V_{\text{assigned}}$$\Delta C$$\Delta E$$\Delta R$$\Delta A$$\Delta B$Net $\Delta(\text{LHS} - \text{RHS})$
deposit (0x00)$+D$$0$$+D$$0$$0$$0$$0$0
forced_exit (0x01) / 0x02 exit$0$$0$$-g$$+g$$0$$0$$0$0
front_paid (ExitSlotUTXO valid)$0$$0$$0$$-g$$+g$$0$$0$0
front_grief (k-burst pro-rata p <= B_grief)$0$$0$$+g + p$$-g$$0$$0$$-p$ (B_grief only!)0
exit_cancel (Leaf 2M_active)$0$$0$$+g$$-g$$0$$0$$0$0
fifo_assign (oldest tightest-slack vault $v$)$-D_v$$+D_v$$0$$0$$-D_v$$+D_v$$0$0
take_confirmed (after T_take = 1,728 blks)$0$$-D_v$$0$$0$$0$$-D_v$$0$0
release_assignment (0x07, signed by $O_j$)$+D_v$$-D_v$$0$$0$$+D_v$$-D_v$$0$0
disprove_dual_slash (Stake_r + VaultConnector_r)$+D_v$ (if assigned)$-D_v$ (if assigned)$+0.55$ (insurance)$0$$+D_v$ (if assigned)$-D_v$ (if assigned)$-0.55$ (B_custody)0
lamport_equivocation_slash (unassigned $v$ stolen)$-D_v$$0$$+0.05$ (bounty)$0$$0$$0$$-(D_v + 0.05)$ (B_custody)0
lamport_equivocation_slash (assigned to innocent $O_k$!)$0$$-D_v$$+0.05$ (bounty)$0$$+D_v$ ($O_k$ whole!)$-D_v$$-(D_v + 0.05)$ (B_custody)0
transfer_credit (O_a -> O_b, R8-M04)$0$$0$$0$$0$$0$ ($-x/+x$)$0$$0$0
retire (RetireStakeTx_r + Hall OK + $A[O_j]=0$)$0$$0$$+B_j + R_j$$0$$-R_j$$0$$-B_j$0

2.2 Honest L1-Subsidized Feeless Zenon Sequencer Rails & Two-Column Throughput Table (M-9, M-10, R8-M01, R8-M08)

  • Exact Zenon Transport Format (NOT Native TokenContract ZTS):
    • Stage 1A zBTC balances live strictly in the Bitcoin-canonical Rollup SMT, NOT in go-zenon's TokenContract.
    • Users transmit signed 110 B rollup transactions (op(1) || domain(1) || fromAcctId(4) || toAcctId(4) || amountSats(8) || nonce(4) || batchTipSats(4) || expiryBtcHeight(4) || memoTag(16) || bip340Sig(64) = 110 B; +32 B = 142 B for new recipient pubkey) inside standard Zenon AccountBlock.Data (UserSend to canonical sequencer sink with Amount = 0).
    • Exact Zenon Plasma Cost (At Floor Price 1,000): $$\text{BasePlasma}(\text{110 B rollup tx}) = 21{,}000 + 68 \times 110 = \mathbf{28{,}480\text{ Plasma}}$$
      • Funded by 14 QSR refundable fused Plasma (ceil(28,480 / 2,100) = 14 QSR, zero burn, replenished upon confirmation) OR 42.72M SHA3-256 PoW hashes.
      • Honest Fee Framing (R8-M01): Stage 1A transfers on Zenon are L1-subsidized soft preconfirmations (0 sat direct user BTC fee for existing accounts) — NOT unbounded zero-cost Bitcoin L1 DA. To defeat zero-cost 0x02 DA flooding via refundable QSR (8.8 tx/s spraying 1-sat dust to fresh addresses = ~3.80 BTC/day @ 50 sat/vB), creating a brand-new SMT account leaf locks a refundable 500-sat zBTC leafDepositSats (reclaimed when the account sweeps to 0 and closes) AND 0x02 batches enforce a hard <= 1,000 new SMT leaves per 6-block batch epoch cap (<= 48 KB witness ≈ 12 kvB/hour max new-leaf DA!).
  • Two-Column Throughput Reality Table (R8-M08 Reconciled — Zenon Transport vs Bitcoin L1 0x02 Physical DA Cap): Observed Zenon Momentum cadence is ~11.4s (origin/dev:vm/embedded/definition/spork.go:43-46), explaining the exact rates below (note: 2.1M / 28,480 / 10s = 7.37 tx/s assumes idealized 10s blocks rather than observed 11.4s):
Regime / BottleneckZenon Soft-Preconfirmation Transport (~11.4s/Mom)Bitcoin L1 0x02 Physical Mutated-Leaf DA Ceiling (600s/blk, 4 MWU = 1M vB/blk)
Pinned Floor (2,100,000 Plasma/Mom)4.4 2-blk tx/s (42,000 Plasma) / 6.5 1-blk rollup sends/s (28,480 Plasma; 7.37 at nominal 10s)Blended 40 B (10 vB) leaf: 166.7 leaves/s @ 100% of all Bitcoin blockspace (1.67 leaves/s @ 1%)
Default Dynamic Plasma (4,200,000/Mom)8.8 2-blk tx/s / 12.9 1-blk rollup sends/s (14.75 at nominal 10s)Existing 16 B (4 vB) leaf: 416.7 leaves/s @ 100% of Bitcoin (4.17 leaves/s @ 1%)
Hard go-zenon 8 MiB Wire Ceiling (MaxMomentumContentBytes = 8 MiB, MaxDetailedMomentumWireSize = 8.38 MB)1,050–1,200 2-blk tx/s (~2,100–2,400 1-blk sends/s; NOT 4,386 tx/s!)New 48 B (12 vB) leaf: 138.9 leaves/s @ 100% of Bitcoin (1.39 leaves/s @ 1%, further capped to <= 1,000 new leaves/6-blk epoch = ~0.28 new leaves/s!)

Key takeaway (R8-M08): High Zenon transport TPS (> 10 tx/s) translates to L1-anchored settlement ONLY to the extent transfers net across repeated accounts within each 6-block batch (0x02 publishes net post-batch leaf states, not individual transactions); distinct mutated accounts per second are strictly physically bounded by Bitcoin L1 blockspace!

  • Graceful Degradation Under Dynamic Plasma DoS: Under a QSR whale Dynamic Plasma spike (spec/05 §2.2), feeless Zenon soft preconfirmations degrade cleanly to Bitcoin L1 0x03 FORCED_TRANSFER and 0x01 FORCED_EXIT, completely bypassing Zenon!

2.3 Slotted Permissionless DA Batcher Economics (R8-M01, R8-M02)

  • Deterministic Slotted Batcher Priority (R8-M02 Closed): To prevent competing permissionless batchers from burning L1 fees on stale-root 0x02 collisions in the same block, registered batchers (zero custody power; permissionless registration via 0x03) follow deterministic slot priority primary_batcher = H(header[h-1].hash) mod K_batchers for blocks [prevBatchHeight + 6, prevBatchHeight + 7]; from prevBatchHeight + 8 onward, any batcher may post 0x02 permissionlessly.
  • Sustainable Incentives: Batchers earn optional batchTipSats, operator fronting fee spreads, and merchant/wallet sponsorship. A batch updating 600 existing accounts requires 9.6 KB witness (2.4 kvB) + ~0.1–10 kvB proof = ~2.5–12.4 kvB (~0.0005–0.0025 BTC at 20 sat/vB).

2.4 Hard-Partitioned B_zbtc, Cyclic ExitSlotUTXO, Oldest-Exit Priority & TransferCredit (R8-H01, R8-H02, R8-N01, R8-N05, R8-M03, R8-M04, R8-M05)

  1. Hard-Partitioned Per-Lane B_zbtc (0.60 BTC = 60,000,000 sats):
    • B_custody = 0.55 BTC (55,000,000 sats): Reserved strictly for 0.50 BTC max-vault Lamport equivocation restitution + 0.05 BTC equivocation bounty (or protocol insurance slash on dual-input DisproveTx). NEVER debited by ExitSlotUTXO griefing!
    • B_grief = 0.05 BTC (5,000,000 sats): Exclusively absorbs ExitSlotUTXO non-paying grief penalties (min(0.01 BTC, floor(B_grief / k_burst)) pro-rata per grieved exit in a block), guaranteeing zero B_custody overflow even under k = 20 concurrent single-block griefs!
  2. Active-Operator (2M_active + 1)-Leaf ExitSlotUTXO With Collision-Free Cyclic Priority (R8-M03, R8-H01):
    • Created by 0x01 FORCED_EXIT (grossSats >= max(dust(destScriptPubKey), MIN_EXIT_SATS = 100,000) sats, R8-M05) using ONLY active non-suspended operators M_active from R_{h-1}:
      • Leaves 0..M_active-1: <6*r> OP_CSV OP_DROP <P_{O_{k_r}}> OP_CHECKSIG where k_r = (H(exitId) + r) mod M_active (0% repeat across r = 0..M_active - 1, matching spec/01 §5 identically!).
      • Leaves M_active..2M_active-1: Open-race leaves <6*M_active> OP_CSV OP_DROP <P_{O_j}> OP_CHECKSIG.
      • Leaf 2M_active (EXIT_CANCEL): <288> OP_CSV OP_DROP <cancelPubKey_user> OP_CHECKSIG.
    • On ANY K-deep spend of ExitSlotUTXO (detected via full stripped-vin scan even without 0x05 tag, R8-C05!):
      • Valid Fronting (vout[0] pays destScriptPubKey >= grossSats - maxOpFeeSats): PendingExits[exitId] -> COMPLETED, ReimbursementCredit[O_j] += grossSats.
      • Non-Paying Grief Spend (vout[0] fails payment check): Atomically PendingExits[exitId] -> CANCELLED, refund 100% of grossSats zBTC to victim (E -> C), distribute min(0.01 BTC, floor(B_grief[O_j] / k_burst)) strictly from B_grief to each victim in that block, auto-suspend O_j, and exclude O_j from all future ExitSlotUTXO trees!
      • User Cancel (Leaf 2M_active after 288 blocks): PendingExits[exitId] -> CANCELLED, refund grossSats zBTC to Accounts[acctId] (restores zBTC, NOT native BTC).
  3. Oldest-PendingExit Credit Priority & TransferCredit (R8-N01, R8-M04):
    • Anti-Self-Fronting Priority (R8-N01): Whenever open retail PendingExits older than 6 blocks exist in the queue, deterministic FIFO vault assignment strictly prioritizes ReimbursementCredit earned from fronting the oldest createdBtcHeight exits ahead of fresh self-fronted exits — stopping operators from pausing par retail fronting to jump the bank-run queue via discounted self-exits! Wallets may additionally specify an optional Dutch-auction f_op curve via 0x06 for transparent fee discovery.
    • Residual Credit Consolidation (R8-M04): Operators holding < 0.25 BTC fractional ReimbursementCredit residuals may execute a signed TransferCredit(from_op, to_op, amt) (via 0x02 or 0x03, conserving sum(R) identically) to merge residuals into a >= 0.25 BTC vault claim, or convert remaining R[op] into Accounts[op] (R -> C) upon clean retirement (RetireStakeTx_r).
  4. Native-L1 Dual-Input Stake_r Slash (R8-H02, R8-N05):
    • On DisproveTx_{r,i} / TimeoutSlashTx_{r,i} spending Stake_r + VaultConnector_r before T_take = 1,728, 0 sats leave U_d (if U_d was ASSIGNED, V_assigned -> V_unassigned and A[U_d] -> R[O_j]). Every active honest verifier collects 0.15 BTC in native Bitcoin L1 BTC directly from Stake_r (vout[0] immediate winner, vout[1..6] ChalPayoutEscrow via ChalProofConnector, >= 0.95 BTC immediate OP_RETURN burn), delivering +0.0645 BTC net EV @ 500 sat/vB (+0.0232 BTC @ 750 sat/vB) completely immune to zBTC crisis discounts and B_grief depletion! On L2, O_j's 0.55 BTC B_custody is slashed to the protocol insurance account (B -= 0.55, C += 0.55, exact conservation).

2.5 End-to-End State Traces: Bob (0.50 BTC) & Mike (0.25 BTC)

  • Bob's Partial Recovery (1 BTC → spend 0.50 zBTC → recover 0.50 BTC under 49%–100% Zenon Compromise):
    1. Bob confirms U_Bob_wallet, consumes 1 × Ticket_050 + 2 × Ticket_025, and deposits 1.00 BTC via 0x00 DEPOSIT → creates deleted-key vaults {0.50, 0.25, 0.25} BTC keyed by acyclic vault_id; at K = 18 blocks, Accounts[Bob] = 1.00 zBTC.
    2. Bob sends 0.50 zBTC to Carol via 110 B AccountBlock.Data on Zenon (28,480 Plasma, 0 sat direct BTC fee) → slotted batcher anchors 0x02 BATCH_DA → Accounts[Bob] = 0.50 zBTC, Accounts[Carol] = 0.50 zBTC.
    3. Attack: 49% (or 100%) of Zenon Pillars turn hostile, split Zenon across its 30-Momentum cliff, censor Bob on Zenon, and spike Dynamic Plasma.
    4. Bob Exits Directly on Bitcoin L1: Bob broadcasts 0x01 FORCED_EXIT(0.50 BTC, P_Bob, maxOpFee) + active-operator ExitSlotUTXO on Bitcoin L1 (completely bypassing Zenon!). At K = 18 blocks, $\mathcal{F}$ moves 0.50 zBTC from C → E.
    5. Any 1-of-M active honest operator $O_j$ (M = 3–5) spends ExitSlotUTXO paying 0.50 BTC - fee directly to P_Bob in vout[0] (~10 min on L1!), moves 0.50 from E → R[O_j], gets FIFO-assigned one 0.50 BTC vault (V_unassigned -> V_assigned, R[O_j] -> A[v]), and after T_take = 1,728 blks claims the vault via TakeTx (V_assigned, A -> 0, recycling Ticket_050). Zero Zenon signers, zero federated signers, zero ZNN trust.
  • Mike's Cross-Depositor Exit (Alice 1 + Bob 1 → Mike 2 → Mike recovers 0.25 BTC with 0 Zenon Signer Cooperation):
    1. Alice (1.00 BTC) and Bob (1.00 BTC) deposit into {0.50, 0.25, 0.25} vaults and send 1.00 zBTC each feelessly to Mike on Zenon → 0x02 BATCH_DA (or Mike's 0x03 FORCED_TRANSFER fallback) sets Accounts[Mike] = 2.00 zBTC.
    2. Attack: Zero Zenon signers cooperate; Alice and Bob are offline or hostile.
    3. Mike Exits 0.25 BTC Directly on Bitcoin L1: Mike posts 0x01 FORCED_EXIT(0.25 BTC, P_Mike, maxOpFee) + ExitSlotUTXO. Any 1-of-M active honest operator $O_j$ fronts 0.25 BTC - fee directly to P_Mike in vout[0] (leaving Mike 1.75 zBTC intact), earns R[O_j] += 0.25 BTC, and claims one 0.25 BTC vault via R -> A -> TakeTx (recycling Ticket_025).
    4. Irreducible Residual Boundary (spec/01 §1.2 Corollary 1B, R8-C06): If 0-of-M operators remain permanently unavailable, Mike's native BTC exit stalls permanently (0 theft; Leaf 2M_active EXIT_CANCEL after 288 blocks restores 0.25 zBTC inside the rollup, NOT native BTC on L1). Under a 100% bank run of 15 BTC (3.0 float + 12.0 vaults, T_cooldown = 13.0d), full queue drain takes ~94–104 days (M = 5, 0.385 vaults/d ≈ 0.128 BTC/d) or ~101–104 days (M = 3 on 10 BTC; ~62–68d with {0.50, 0.50} vaults).

3. Stage 1B (Alternative Gate): clArk VTXO Coordination Rails

If the project cannot commit ~14.75–21.25+ BTC of hard operator/verifier capital or requires a 3–6 month mainnet ship window using existing audited open-source stacks (Second bark/barkd or Ark Labs arkd), Stage 1B offers an explicit non-federated, zero-soft-fork alternative with 2–5 BTC active ASP liquidity (0 dead slashing bonds):

  • Zenon's Role: Feeless off-chain coordination, round scheduling, VTXO intent indexing, and Stage 0 SPV verification — 0% Zenon consensus custody dependency.
  • Exact Trade-Offs (Mandatory Disclosure):
    1. Post-Round 0-of-N Unilateral Exit (Until Expiry): Once Mike's 0.25 BTC VTXO is confirmed in an L1 clArk round tree, Mike exits unilaterally on Bitcoin L1 with zero ASP/signer cooperation by broadcasting his pre-signed log2(N) branch (6..10 txs for N = 64..1,024 VTXOs, using TRUC v3 + ephemeral anchors on Core >= 29.0).
    2. Pre-Round (arkoor) Sender+ASP Collusion Risk: Instant feeless out-of-round transfers (Alice -> Mike) are vulnerable to Alice + ASP double-spend collusion until the next L1 round refreshes Mike into a new VTXO tree (wallets MUST visually separate trustless in-round VTXOs from arkoor balances!).
    3. Hard VTXO Expiry & Watchtower Requirement: VTXOs expire (e.g., 30–60 days) back to the ASP sweep key, requiring automated watchtowers/online refreshes or log2(N) L1 exit fees; ASP liquidity (2–5 BTC) is locked 100% for each full expiry cycle, capping round turnover to 2–5 BTC/cycle.
    4. No Global Pooled zBTC Token: clArk VTXOs are discrete UTXO trees, not a single global fungible zBTC balance sheet composable with Zenon DeFi — and clArk VTXOs do not migrate automatically into Stage 1A Rollup zBTC without on-chain L1 settlement.

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.