Ergo Sigma v6 (treeVersion = 3) MINED ON ERGO TESTNET · BLOCK #670,421 Zero Bridge Guards · Real BTC Mainnet #0–#3 Verified

Ergo On-Chain Bitcoin SPV Relay & Guardianless Settlement Lab

Inspect real Bitcoin Mainnet headers verified natively by Ergo L1 consensus, test competing Proof-of-Work fork reorgs on an authenticated AvlTree, and attack a guardianless BTC→ERG SPV escrow with real-world exploits (including CVE-2017-12842).

★ NEW STANDALONE APP — Cash-to-BTC Secured Onramp (rsBTC / USE Collateral Fallback · Zero Oracle): Mode 1 Direct Cash Desk + Mode 2 P2P with refundable anti-grief bond, fail-closed Pre-Cash Verifier, 0-ERG Buyer Fallback (0 B proof), and 10/10 mined proofs in Ergo Testnet Block #671,615!
Open Standalone Cash-to-BTC Onramp →
✔ LIVE ON-CHAIN PROOFS (Ergo Testnet Blocks #670,421, #670,503 & #671,615): ★ Block #671,615 — Cash-to-BTC Onramp (Real BTC Mainnet SegWit #977,926 bc1q…, t-USE & t-rsBTC, 0.000 ERG Buyer Fallback, 0 Oracle): 2a SPV Unlock (0 B!) ↗ · 2b 0-ERG Fallback (0 B!) ↗ · Satoshi→Hal #170 Escrow (0 B) ↗ · BTC Genesis #0→#3 Relay ↗
Header Relay (Exact Retarget)
3,555 cost
0.36% of 1M · 3,413 B tree · #32,256 ✔
Cash-to-BTC Onramp (2a / 2b)
3,541 / 1,791
0 B proof · 0 ERG Buyer · 0 Oracle!
Guardianless BTC→ERG Claim
3,240 cost
0.32% of 1M · 2,768 B tree · 0 guards
Compiled Contracts & Parity
4 / 4 Audited
0 Red-Team ERRORs · All boxes < 4 KB

Live Any Bitcoin Mainnet TxID → Guardianless Ergo L1 Verifier & Testnet Settler

Paste ANY confirmed Bitcoin Mainnet txid (legacy, SegWit, or Taproot, ≥ 3 confirmations). This page fetches real Bitcoin Mainnet headers (H−11..H+2), strips SegWit witness bytes, checks double-SHA256 PoW, 256-bit Bitcoin Core chainwork, 11-block MTP, and CVE-2017-12842 paired coinbase Merkle depth, builds bit-exact Ergo BatchAVLProver (0x07) proofs 100% client-side in pure JS (verified byte-for-byte against Scala sigma-state 6.0.3!), and lets you settle it live on Ergo Testnet via Nautilus!

1. Pure-JS Cryptographic & Ergo AVL+ Proof Bundle

Click "Fetch & Build Ergo Sigma v6 Proof" (or pick "Latest Live Bitcoin Mainnet Tx") to prove a real Bitcoin Mainnet tx client-side...

2. Live Ergo Testnet Settlement (Nautilus EIP-12 · 0 Guards!)

Executes the exact 3-step guardianless protocol on live Ergo Testnet (strictly Testnet-only; refuses Mainnet wallets):
1) Mint Relay Singleton @ H−1 + Lock Escrow (~0.032 tERG)
2) Relay real BTC Mainnet [H, H+1, H+2] (0 B relay proof!)
3) Claim Escrow via CONTEXT.dataInputs(0) (0 B escrow proof!)

Step 0: Build a Bitcoin Mainnet proof bundle on the left, then connect Nautilus (Testnet) to broadcast live.

Live WebCrypto Verification of Real Bitcoin Mainnet Headers (#0 → #3)

Click Verify Real Mainnet Batch to run the exact same checks as BitcoinHeaderRelayScript right in your browser: 80-byte wire decode, double-SHA256 PoW against compact nBits, Bitcoin Core MedianTimePast, and the overflow-free signed-256-bit chainwork identity floor(2^256 / (target + 1)). Then click Tamper 1 Nonce Bit to watch PoW fail immediately!

Click "Verify Real Mainnet Batch (#0 → #3)" to execute live double-SHA256 verification...

Authenticated AVL+ Fork Choice & Reorg Engine

The singleton relay box stores be64(height + 1) → hash(32B) || merkleRoot(32B) || cumWorkBE(32B) inside a 33-byte AvlTree (0x07). Any competing branch must prove its ancestor at forkHeight and achieve strictly greater cumulative work (newWork > oldWork). Equal-work ties never switch.

Current Active Chain (On-Chain State)

ErgoScript Consensus Trace


      

Guardianless BTC→ERG Settlement & Adversarial Attack Tester

An escrow locks 100 ERG requiring 250,000 sats to the seller's Bitcoin P2WPKH script with minConfirmations = 3, reading BitcoinHeaderRelay via zero-contention CONTEXT.dataInputs(0). Toggle any hostile mutation below to see which exact BitcoinSpvEscrowScript invariant blocks it!

Transaction & Proof Conditions

Relay confirmations (tipHeight - btcHeight + 1)
Target vout claimed by buyer
Stripped Bitcoin tx framing
Paired coinbase proof (CVE-2017-12842)
Ergo payout output OUTPUTS(0)

On-Chain Verdict