v2 (v3.1.0-rfc) · public rfc · zero-federation · not mainnet-active
How to Review: LLM Prompt, Guardrails & PR Guide
Instructions, hard guardrails, reference repositories, and a ready-to-paste hostile review prompt for LLMs and human protocol auditors.
Review Objectives & Hard Guardrails
Before auditing v2 (v3.1.0-rfc) — or feeding this specification to an LLM — read thesefive non-negotiable guardrails. Feedback that violates these constraints (for example, suggesting a custodial multisig federation or assuming unactivated Bitcoin soft forks as a "quick fix") solves the wrong problem.
[01] NO FEDERATED SIGNATURES
We do not want a federated signature scheme. Custodial k-of-nHSM multisigs, threshold custody committees, and custodial backup recovery sets are explicitly rejected. If you break part of v2, propose a non-federated fix or prove the exact cryptographic limit.
[02] RECOVERY IF SIGNERS DO NOT ACT
The goal is trustless Bitcoin that users can still recover if signers refuse to sign, go offline, censor exits, or attack — even if Zenon consensus is compromised up to 49%(or higher). Flag any hidden custody key, liveness choke point, or permanent freeze.
[03] FUNGIBILITY ON BITCOIN
The goal is fungible, divisible BTC on Zenon with feeless L2 transactions. Users must be able to combine coins received from different depositors, spend a fraction, and recover a partial BTC amount on Bitcoin L1 — never silently accept fixed-1-BTC-only or non-fungible depositor receipts as full fungibility.
[04] DO NOT WAIT FOR COVENANTS
Target Bitcoin Mainnet today (BIP-340/341/342 Taproot, OP_CSV,BIP-431 TRUC v3) with no Bitcoin soft forks (no OP_CAT,OP_CTV, OP_CCV, or native ZK opcodes). If a property is provably impossible without covenants, state the exact mathematical boundary and compare against the best covenant-free design.
[05] YOUNG PROJECT & LOW MARKET CAP REALISM
Zenon is young with a very low market cap (~25–33 BTC total ZNN mcap) and a small team. Do not rely on ZNN staking/slashing or Zenon PoS consensus to secure BTC custody, and do not propose bootstrap capital walls of hundreds of BTC without explicitly exposing the economic infeasibility. Distinguish Tier 0 (0-of-N), Tier 1 (1-of-N / 1-of-M), andTier 2 (k-of-n) honestly with zero sugarcoating.
Required Reference Repositories
Give reviewing LLMs access to all three repositories so every claim is verified against primary Zenon design docs, real node code, and the executable bounds checker:
| Repository | Role in Review | Key Files to Cross-Check |
|---|---|---|
btc-moonshot/spec | Normative v2 (v3.1.0-rfc) spec, frozen v1 & v0, checker & R1–R8 trail | SPEC.md, spec/01..05, CHANGELOG.md,scripts/verify_spec_bounds.py, llms-full.txt |
TminusZ/zenon-developer-commons | Zenon architecture, SPV model, threat model & non-bridging philosophy | 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 |
zenon-network/go-zenon | Reference Zenon L1 node implementation | consensus/election_algorithm.go, protocol/chain_bridge.go,verifier/momentum.go, dp/dp.go (origin/dev),vm/embedded/implementation/plasma.go, ptlc.go, spork.go |
Copy-Paste LLM Review Prompt
Paste this prompt directly into any reasoning or coding LLM (Claude, Codex/GPT, Gemini, etc.) — or point an agent at the plain-text file llm-review-prompt.txt.
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.Quickstart for Autonomous AI Agents
Point any CLI or autonomous review agent directly at these machine-readable URLs and clone all three repos:
# 1. Fetch the LLM review prompt + guardrails directly:
curl -sL https://btc-moonshot.github.io/spec/llm-review-prompt.txt
# 2. Fetch the structured manifest or single-file complete v1 bundle:
curl -sL https://btc-moonshot.github.io/spec/llms.txt
curl -sL https://btc-moonshot.github.io/spec/llms-full.txt
# 3. Clone all three reference repositories & run the consistency checker:
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
cd spec
(cd versions/v0 && shasum -a 256 -c SHA256SUMS.txt)
(cd versions/v1 && shasum -a 256 -c SHA256SUMS.txt)
python3 -I scripts/verify_spec_bounds.pyDirect submission links:Report an Adversarial Finding ·Propose a Spec Adjustment (RFC) ·Open a Pull Request.
Mandatory Stress-Test Scenarios
Every thorough review should explicitly grade v2 (and any alternative design it proposes) against these three litmus tests:
- Feeless BTC on Zenon: Standard transfers pay
0satoshis BTC fee on Zenon (verify Plasma cost, Dynamic Plasma price-spike DoS via refundable QSR, realgo-zenon8 MiBMomentum throughput ceiling, and L1 entry/exit fees). - Bob's Partial Recovery Under ≤49% Zenon Compromise: Bob deposits
1 BTC, receives1 zBTC, spends0.5 zBTC, and recovers0.5 BTCon Bitcoin L1 without trusted third parties — even if up to 49% of Zenon is compromised (equivocation, seed grinding, censorship, or Plasma DoS). - Mike's Cross-Depositor Exit When Signers Refuse to Act: Alice deposits
1 BTCand Bob deposits1 BTC; both send allzBTCto Mike (2 zBTC). Mike wants to recover0.25 BTCon Bitcoin L1 even if Zenon signers refuse to sign. Trace exact L1 inputs, outputs, change custody, griefing vectors, and residual liveness assumptions.
Public adversarial review — from both human protocol engineers and AI review agents — is the core reason this specification is published openly at https://btc-moonshot.github.io/spec/.
How to Review Adversarially
- Ingest the current
v1(v3.0.0-rfc) spec: Browse https://btc-moonshot.github.io/spec/, clone this repo, or fetch the single-file LLM bundle at https://btc-moonshot.github.io/spec/llms-full.txt (indexed via https://btc-moonshot.github.io/spec/llms.txt). Compare against archivedv0(v2.5.0-rfc) at https://btc-moonshot.github.io/spec/changelog/. - Run the Consistency & Bounds Checker independently:
Do not trust prose numbers without checking the exact derivations and 2,000-step state-machine simulation in(cd versions/v0 && shasum -a 256 -c SHA256SUMS.txt) python3 -I scripts/verify_spec_bounds.pyscripts/verify_spec_bounds.py. Note thatPRE_MAINNET_TARGET_constants are pre-mainnet engineering targets to be measured empirically on Signet — never claim "oracle verified". - Read the existing audit trail (
reviews/HOSTILE_REVIEW_R1.mdthroughreviews/HOSTILE_REVIEW_R7_CONSOLIDATED.md) andCHANGELOG.mdto see howv0failed, why federated multisigs were explicitly rejected, and which Stage 0 / Stage 1A / Stage 1B gates remain open before any mainnet deployment.
Severity Taxonomy (for GitHub Issues)
| Severity | Definition |
|---|---|
| CRITICAL | Loss of funds, unbacked minting, permanent unrecoverable lock, or broken conservation invariant. |
| HIGH | Broken core security assumption, unbuildable Bitcoin Script / cryptographic construction, BIP-431 TRUC violation, or slashing/equivocation bypass. |
| MEDIUM | Edge-case liveness/griefing vector, honest-operator stranding, timelock/clock mismatch, or cross-layer state race. |
| LOW | Numeric slip, ambiguous phrasing, missing domain-separation tag, or incomplete boundary check. |
| CHECKER | Bug, no-op simulation shortcut, tautology, or prose mismatch inside scripts/verify_spec_bounds.py. |
Opening an Issue
Use the structured issue templates at https://github.com/btc-moonshot/spec/issues/new/choose:
- Adversarial Finding: Cite exact file/section/line, give a concrete step-by-step failure trace (or Python snippet), explain the violated invariant, and suggest a minimal normative fix.
- Spec Change Proposal (RFC): Describe motivation, exact sections affected, security/economic trade-offs, and checker impact.
Submitting a Pull Request
- Fork and branch from
main. Never modify frozen files underversions/v0/. - Make surgical, cross-file consistent edits to
SPEC.md,spec/01..05,CHANGELOG.md, andscripts/verify_spec_bounds.py. - Sync the static site's raw files and
public/llms-full.txt:npm run sync:spec - Verify ALL mandatory CI gates locally before pushing:
(cd versions/v0 && shasum -a 256 -c SHA256SUMS.txt) python3 -I scripts/verify_spec_bounds.py python3 -I versions/v0/scripts/verify_spec_bounds.py npm ci && npm run build - Complete every checkbox in
.github/PULL_REQUEST_TEMPLATE.md. All PRs must pass.github/workflows/verify-oracle.yml.
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.