Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Introduction

eyezero (i0) is a zero-sequencer, zero-bridge Proof-of-Work mini-chain and meme-coin launchpad whose entire ruleset, UI, and verifier live permanently inside a single Genesis Inscription on Bitcoin.

Traditional Bitcoin layers either inherit Bitcoin’s 10-minute UX latency or rely on a centralized sequencer, validator committee, or custodial bridge. eyezero takes a different path:

  • Live UX without a sequencer: Users open the Genesis Inscription directly on any ord viewer (ordinals.com), connect over Entmoot (entmoot-lite WebRTC-direct, which runs inside ord’s strict sandbox CSP), and broadcast signed trades that update live charts in under 1 second.
  • Permissionless PoW settlement on Bitcoin: Anyone can pack pending Entmoot orders into a block payload, grind the reveal_txid offline until the inscription ID starts with leading zeros (000000…i0), and inscribe it on Bitcoin.
  • Every browser is a verifying node: Opening the inscription runs the deterministic verifier locally using ord’s recursive endpoints (/content/<id>, /r/inscription/<id>, /r/blockhash/<h>). No validator fleet is required.
  • MEV-free trading: All buys and sells for a token inside a block execute at one uniform batch-clearing price using exact BigInt integer math.
  • Trustless BTC on/off-ramp: Miners and winning traders swap native $I0 back into real BTC using built-in Bitcoin L1 HTLC atomic swaps — zero bridge, zero custodian.

System Architecture

<!-- Arrows -->
<line x1="220" y1="56" x2="288" y2="56" marker-end="url(#arrow)"/>
<line x1="290" y1="78" x2="222" y2="78" marker-end="url(#arrow)" stroke-dasharray="4 3"/>
<line x1="490" y1="66" x2="558" y2="66" marker-end="url(#arrow)"/>
<line x1="660" y1="102" x2="660" y2="154" marker-end="url(#arrow)"/>
<path d="M 560 192 L 390 192" stroke="none"/>
<line x1="390" y1="156" x2="390" y2="104" marker-end="url(#arrow)" stroke-dasharray="4 3"/>
<path d="M 290 192 L 120 192 L 120 104" marker-end="url(#arrow)"/>
User Browser Genesis Inscription (ord)
<text x="390" y="59" font-weight="600">Entmoot P2P</text>
<text x="390" y="80" font-size="11" opacity="0.8">WebRTC-direct Mempool</text>

<text x="660" y="59" font-weight="600">Permissionless Miners</text>
<text x="660" y="80" font-size="11" opacity="0.8">Offline Vanity PoW</text>

<text x="525" y="187" font-weight="600">Bitcoin L1 (Ordinals Settlement)</text>
<text x="525" y="208" font-size="11" opacity="0.8">Confirmed 000000…i0 Blocks + /r/inscription + /r/blockhash</text>
#i0-tx <1s soft pending commit+reveal #i0-blk /content/* & /r/* verify

Protocol Layers at a Glance

LayerComponentResponsibility
Rules & UIGenesis Inscription (G)Immutable HTML/JS app on Bitcoin holding applyBlock(), bonding-curve math, verifier, and UI
Live MempoolEntmoot (entmoot-lite)WebRTC-direct P2P gossip propagating #i0-tx orders and #i0-blk announcements in <1s
Settlement & PoWVanity Inscriptions (000000…i0)Confirmed Bitcoin inscriptions whose reveal_txid satisfies dynamic leading-zero PoW difficulty
VerifiersEvery User’s BrowserValidates PoW, Bitcoin confirmation, signatures, nonces, and state diffs locally
BTC On/Off-RampBuilt-in HTLC SwapsAtomic P2P swaps between real Bitcoin L1 and native $I0 with zero custodian

Reading Guide

  • Start with Protocol Overview to walk through each subsystem chapter by chapter.
  • Want everything on a single page to read or share? Jump straight to the Full v1 Design Document.
  • Looking for parameters still to lock in before building the v1 prototype? See Open Decisions.

Protocol Overview

The eyezero (i0) protocol is built around five minimal, composable pieces so that v1 can ship in pure JavaScript inside a single Bitcoin inscription and later scale to hundreds of TPS via ZK proofs without changing its rules or block structure.

  1. Consensus & Vanity PoW — How miners grind 000000…i0 inscription IDs offline without wasting BTC fees, how blocks anchor to /r/blockhash/<h> to prevent pre-mining, and how forks and ties resolve.
  2. Economics & Mining — How native $I0 is fair-launched via PoW block rewards and why 100% of bonding-curve trading fees go directly to miners.
  3. Bonding Curve & Batch Clearing — The six transaction primitives, the order-independent BigInt batch clearing formula that eliminates MEV/sandwich attacks, and how live <1s trading works inside ord’s sandbox.
  4. Trustless BTC Swaps (HTLC) — How miners and winning traders move value between $I0 and real Bitcoin L1 atomically without a bridge or centralized exchange.
  5. Block Format & Scaling (v1 → v2) — Compact CBOR+Brotli blocks, State Diffs, periodic Checkpoint Snapshots, and swapping raw signatures for a 200-byte ZK proof in v2 with zero Entmoot data-availability risk.

Consensus & Vanity PoW

Vanity-ID Proof of Work (000000…i0)

Every Ordinal inscription ID has the form <reveal_txid>i0. Because the reveal transaction spends the commit transaction’s Taproot output — whose script commits to the exact inscription payload bytes — changing even one bit of the block changes commit_txid and therefore reveal_txid.

Miners pack pending #i0-tx orders from Entmoot into a block payload and grind a nonce (or nLockTime / reveal fields) entirely offline until the display-order reveal_txid meets the difficulty target (000000…i0). Only when a valid solution is found does the miner broadcast commit + reveal on Bitcoin.

Zero wasted BTC fees: Failed PoW hashes happen strictly offline in CPU/GPU memory. Miners only pay Bitcoin L1 transaction fees when broadcasting a winning block.

Block Validity Rules

Every browser tab opening Genesis Inscription G rejects a candidate block B unless all six rules hold:

  1. Confirmed on Bitcoin: GET /r/inscription/<B.id> succeeds, B.id ends with i0, and B is confirmed in a Bitcoin block at height btc_height(B).

  2. Chain Continuity: B.prev equals the parent canonical block’s ID (or G at height 1), B.height === prev.height + 1, and btc_height(B) > btc_height(prev) (at most one canonical i0 block per Bitcoin block).

  3. Anti-Premine Anchor: B includes btcRef = { h, hash }, verified against GET /r/blockhash/<h>, where:

    • btc_height(prev) <= h < btc_height(B)
    • btc_height(B) - h <= 6

    Because reveal_txid cryptographically commits to btcRef.hash, no miner can secretly pre-grind block N + 1 before the Bitcoin block carrying block N exists.

  4. PoW Difficulty Target: Interpreting B.id.slice(0, 64) (the visible 000000… display hex) as a 256-bit unsigned integer satisfies: \[ \text{uint256}(B.\text{id}) \le \text{target}(B.\text{height}) \]

    • Continuous retargeting: Smooth bit-level target (avoiding 16× jumps between hex nibbles), retargeting every 72 blocks (~12 hours) toward 1 i0 block per Bitcoin block, clamped to 0.25x–4x per epoch.
    • Minimum floor: Hard minimum of 20 leading zero bits (00000…i0) so canonical blocks are always visibly vanity-mined even at low hashrate.
  5. Valid Signatures & Strict Nonces: Every transaction in B.txs has a valid BIP-340 Schnorr signature, chainId === G.slice(0, 16), strictly sequential nonce === account.nonce + 1, and sufficient balance.

  6. Deterministic State Transition: Replaying applyBlock(prevState, B) in exact BigInt integer math produces identical B.stateRoot and B.diff (and B.checkpoint on checkpoint heights).

Fork Choice & Orphan Tie-Break

When competing valid blocks exist:

  1. Primary rule: Select the valid chain with the highest cumulative PoW work (\( \sum 2^{256} / \text{target} \)).
  2. Same-work tie-break:
    1. Earliest Bitcoin confirmation block (lowest btc_height).
    2. If both blocks confirmed in the same Bitcoin block: lowest inscription_number from /r/inscription/<id>.

At the same height with the same parent, competing blocks share the exact same target, so the tie-break reduces immediately to earliest Bitcoin block, then lowest inscription_number.

Block Discovery & Cold Recovery

  • Fast discovery: Once a winning block confirms on Bitcoin, the miner broadcasts #i0-blk: { id, height, prev } on Entmoot. Every online browser caches verified headers in IndexedDB and re-gossips the tip.
  • Cold recovery (no Entmoot required): Because every block embeds B.prev, knowing any single recent block ID (from a peer, explorer, or social post) lets any browser walk B.prev backwards over /content/<id> all the way to Genesis G and reconstruct the entire chain directly from Bitcoin.

Economics & Mining

What Miners Expend

To produce a valid eyezero block, a miner expends two real, scarce resources:

  1. Compute & electricity — grinding reveal_txid offline until 000000…i0 satisfies the current PoW target.
  2. Bitcoin L1 transaction fees — paying Bitcoin miners to confirm the commit + reveal inscription on mainnet.

If a miner packs even one invalid signature, bad nonce, or miscalculated curve output, every user’s browser rejects the block and the miner loses both their PoW work and their Bitcoin fee.

What Miners Earn

Every valid 000000…i0 block rewards its miner (B.miner) with two native revenue streams:

1. Fair-Launch Block Reward ($I0)

  • Each canonical block mints new native $I0 directly to B.miner on a Bitcoin-style halving schedule (0% premine, 0% insider allocation).
  • Mining is the only way $I0 enters circulation.
  • $I0 serves as the quote currency for all bonding curves, launch fees, and spam-prevention fees — eliminating the need for a centralized BTC bridge.

2. 100% of Protocol Trading & Launch Fees

  • 1.0% trading fee on every bonding-curve BUY and SELL, credited directly to the miner of that block.
  • Flat launch fee (in $I0) on every LAUNCH transaction (anti-spam + miner revenue).
  • Optional priority tips (fee) attached to any transaction.
The Protocol Flywheel: Active meme trading builds up a 1% fee pot in the Entmoot mempool → miners compete to grind 000000…i0 and pay Bitcoin L1 fees to claim those fees quickly → PoW difficulty rises, securing the chain and creating organic demand for $I0.

Closing the Value Loop

The protocol never holds a centralized BTC vault (which would create a custodial honeypot). Instead:

  1. Miners expend compute + BTC fees to earn $I0 block rewards and 1% trading fees.
  2. Incoming traders bring real BTC and buy $I0 from miners (or winning traders) via the built-in P2P HTLC swap or open markets.
  3. Winning traders cash profits back into real BTC the exact same way.

Bonding Curve & Batch Clearing

All bonding-curve logic lives permanently inside Genesis Inscription G as pure deterministic BigInt integer math — zero floating-point arithmetic, guaranteeing every browser on Earth computes bit-for-bit identical balances.

Transaction Primitives

The entire v1 protocol needs only six transaction types:

TypePayload FieldsPurpose
TRANSFERto, tokenId, amount, feeTransfer $I0 (tokenId = 0) or any launched token
LAUNCHticker, name, artId, initialBuy, feeDeploy a new token (artId = any Bitcoin Ordinal inscription_id for permanent on-chain meme art)
BUYtokenId, i0In, minTokOut, feeBuy tokens from a bonding curve or graduated AMM pool
SELLtokenId, tokIn, minI0Out, feeSell tokens back to a bonding curve or graduated AMM pool
HTLC_LOCKrecipient, amount, hashlock, timeoutHeight, feeLock $I0 for an atomic BTC swap
HTLC_CLAIM / HTLC_REFUNDswapId, preimageClaim locked $I0 with SHA256(preimage) == hashlock, or refund after timeoutHeight

MEV-Free Uniform Batch Clearing

In a sequential mempool, miners or bots can front-run and sandwich trades. eyezero removes ordering MEV completely by clearing all BUY and SELL orders for a token within a block at one single uniform clearing price.

Let a token’s current virtual+real reserves be:

\[ X = V_{I0} + R_{I0}, \qquad Y = V_{\text{tok}} + R_{\text{tok}} \]

For each token traded in block B:

  1. Deduct the 1% trading fee from every order’s input (credited to B.miner).
  2. Sum all net buy inputs \( B = \sum b_i \) (in $I0) and all net sell inputs \( S = \sum s_j \) (in token).
  3. Compute total batch outputs with integer floor division: \[ \text{out}_{\text{tok}} = \left\lfloor \frac{B \cdot (Y + S)}{X + B} \right\rfloor, \qquad \text{out}_{I0} = \left\lfloor \frac{S \cdot (X + B)}{Y + S} \right\rfloor \]
  4. Allocate pro-rata to every buyer and seller: \[ \text{buyer}_i \text{ receives } \left\lfloor \frac{b_i \cdot \text{out}_{\text{tok}}}{B} \right\rfloor, \qquad \text{seller}_j \text{ receives } \left\lfloor \frac{s_j \cdot \text{out}_{I0}}{S} \right\rfloor \]
  5. Update reserves: \[ X^{\prime} = X + B - \text{out}_{I0}, \qquad Y^{\prime} = Y + S - \text{out}_{\text{tok}} \]

Mathematical Guarantees

  • Order-independent & sandwich-proof: Every buyer and seller in the block receives the exact same effective price \( P = (X + B) / (Y + S) \), regardless of where their transaction sits in B.txs.
  • Exact constant-product reduction: When \( S = 0 \) (buys only), \( \text{out}_{\text{tok}} = \lfloor B \cdot Y / (X + B) \rfloor \); when \( B = 0 \) (sells only), \( \text{out}_{I0} = \lfloor S \cdot X / (Y + S) \rfloor \) — identical to standard \( x \cdot y = k \).
  • Strict solvency: For any simultaneous buys and sells, \( X^{\prime} \cdot Y^{\prime} \ge X \cdot Y \) always holds (rounding dust stays in the pool), and \( R_{I0}^{\prime} \ge 0 \) always holds.
  • Slippage enforcement: Every order included in B.txs must satisfy actualOut >= order.minOut at the block’s clearing price, or the entire block is invalid.
  • Seamless graduation: When real reserve \( R_{I0} \) reaches GRAD_TARGET, the token transitions permanently into a locked constant-product AMM pool using the exact same batch formula with zero downtime.

Live Trading UX (<1s Soft State)

  • When a user clicks Buy, their browser signs an order with their next nonce and broadcasts it to Entmoot (#i0-tx).
  • All connected browsers receive the signed order in <1 second, run the exact applyBlock() preview locally, and update live charts and balances badged as Pending (Entmoot).
  • Users can chain multiple trades inside the same 10-minute window using incrementing nonces (nonce 5 → 6 → 7).
  • When the next 000000…i0 block confirms on Bitcoin, included trades snap cleanly from Pending to Final (Bitcoin).

Wallet Keys Inside ord’s Sandbox

Because ord renders inscriptions inside a strict sandboxed iframe (blocking external fetch/WebSocket and typically isolating browser wallet extensions):

  • Genesis Inscription G creates and stores a local BIP-340 Schnorr (secp256k1) trading keypair in IndexedDB, exportable as a 12-word recovery phrase or encrypted backup.
  • Users only need their external Bitcoin L1 wallet when mining blocks or executing L1 HTLC swaps.

Trustless BTC Swaps (HTLC)

Miners and winning traders convert $I0 back into real Bitcoin — and incoming traders acquire $I0 with real BTC — using Hash Time-Locked Contracts (HTLCs), the same atomic primitive used by the Lightning Network.

No multisig, no centralized exchange, and no custodial bridge are required.

Atomic Swap Flow

Alice ($I0 Seller) eyezero Chain Bitcoin L1 Bob (BTC Buyer) 1. Match offer on Entmoot (10,000 $I0 ↔ 0.05 BTC) 2. HTLC_LOCK 10k $I0 (H, T+18) 3. Lock 0.05 BTC (H, T+6) 4. Claim 0.05 BTC — reveals secret S on Bitcoin 5. HTLC_CLAIM 10k $I0 using revealed secret S

Step-by-Step Walkthrough

  1. Match on Entmoot: Alice (a miner or winning trader) posts an offer on Entmoot’s P2P swap channel (10,000 $I0 for 0.05 BTC). Bob accepts and exchanges pubkeys.
  2. Alice locks $I0: Alice generates a random 32-byte secret S, computes H = SHA256(S), and submits HTLC_LOCK(recipient = Bob, amount = 10000, hashlock = H, timeoutHeight = T + 18) on eyezero.
  3. Bob locks real BTC: Once Alice’s HTLC_LOCK confirms on eyezero, Bob locks 0.05 BTC on Bitcoin L1 in a standard Taproot/P2WSH HTLC script (OP_SHA256 <H> OP_EQUAL → Alice, or refund to Bob after T + 6 Bitcoin blocks).
  4. Alice claims BTC: Alice spends Bob’s Bitcoin HTLC UTXO by revealing S in the witness, receiving 0.05 BTC in her Bitcoin wallet.
  5. Bob claims $I0: S is now public on Bitcoin L1. Bob submits HTLC_CLAIM(swapId, preimage = S) on eyezero. Every browser checks SHA256(S) === H and releases Alice’s 10,000 $I0 to Bob.

Safety Invariants

  • Timelock ordering: eyezero_timeout (T + 18 Bitcoin blocks) is always strictly longer than btc_timeout (T + 6 Bitcoin blocks), guaranteeing Bob at least a 12-block window (~2 hours) to read S from Bitcoin L1 and claim his $I0.
  • Zero extra ord APIs required: Unlike payment-inspection tricks that break when a seller spends an inscription UTXO, HTLC_CLAIM depends solely on SHA256(preimage) === hashlock — a mathematical proof that remains verifiable forever inside ord’s sandbox.
  • Atomicity: If either party walks away before Step 4, both locks refund automatically after their respective timeouts.

Block Format & Scaling (v1 → v2)

A single standard Bitcoin inscription supports up to ~380–390 KB of compressed payload (within Bitcoin Core’s 400 KB standardness limit). eyezero is designed so v1 ships immediately in pure JavaScript and v2 later scales to hundreds of TPS using the exact same block schema.

Compact Block Schema (CBOR + Brotli, ≤380 KB)

{
  "v": 1,
  "h": 4201,
  "prev": "0000007a...9f1ei0",
  "btcRef": { "h": 924110, "hash": "00000000000000000002..." },
  "miner": "<32-byte BIP-340 pubkey>",
  "nonce": 18492011,
  "stateRoot": "<32-byte SHA-256 Merkle root>",
  "diff": [
    [104, 0, "495000000"],
    [104, 17, "12840000"]
  ],
  "checkpoint": null,
  "txs": [ "...compact signed transactions..." ]
}

State Diffs (diff)

  • Lists only the (accountId, tokenId, newBalance) entries that changed during this block (~12 bytes per entry).
  • No limit on total chain wallets: Even if 10,000,000 wallets exist on the chain, if 500 traded in the last 10 minutes, diff is only ~6 KB.
  • One 380 KB inscription can record up to ~30,000 unique active wallets changing balance in a single 10-minute window.

Periodic Checkpoint Snapshots (checkpoint)

  • Every N blocks (e.g., every 144 blocks ≈ 1 day), a block includes a full compressed snapshot of all non-zero balances.
  • Up to ~30,000 non-zero balances fit inside a single checkpoint inscription; beyond that, the checkpoint splits cleanly across linked snapshot pages (page 1, page 2, ...).
  • New browsers sync immediately from the latest checkpoint instead of replaying every historical block since Genesis.

Throughput & v1 → v2 ZK Upgrade Path

StageOn-Chain Block ContentsEstimated ThroughputBrowser VerificationEntmoot DA Risk
v1 (Ship Now)prev + diff + checkpoint + raw txs~3,500–4,200 txs / block (~6–7 TPS)Pure JS signature & math check since last checkpointZero (100% on Bitcoin)
v2 (ZK Upgrade)prev + diff + checkpoint + ~200B zkProofHundreds of TPS (all intra-block trades collapsed into net diff)~5 ms single ZK proof verification, zero replayZero (every final balance diff stays permanently on Bitcoin)
Why State Diffs + ZK eliminate data-availability risk: Suppose 500 wallets trade a meme coin 50,000 times in 10 minutes. In v2, the miner proves all 50,000 signatures and batch clearings off-chain, and inscribes only the ~6 KB net balance diff + 200-byte ZK proof on Bitcoin. Even if Entmoot disappears completely, every wallet's exact balance is still permanently recoverable from Bitcoin alone.

Full v1 Design Document

One-liner: A zero-sequencer, zero-bridge Proof-of-Work mini-chain and meme-coin launchpad whose entire ruleset, UI, and verifier live inside a single Genesis Inscription on Bitcoin.


1. Core Architecture

eyezero (i0) separates live UX from final settlement without introducing any centralized sequencer, validator server, or custodial bridge.

LayerComponentRole
Rules & AppGenesis Inscription (G)Immutable HTML/JS app on Bitcoin holding the deterministic applyBlock() state machine, bonding-curve math, verifier, and UI.
Live MempoolEntmoot (entmoot-lite)WebRTC-direct P2P gossip (works inside ord’s strict sandbox CSP). Propagates signed orders (#i0-tx) and block announcements (#i0-blk) in <1s.
Settlement & PoWVanity Inscriptions (000000…i0)Anyone packs pending orders, grinds reveal_txid offline until the inscription ID meets dynamic PoW difficulty, and inscribes on Bitcoin.
Verifying NodesEvery User’s BrowserOpening G on ordinals.com verifies PoW, /r/inscription/<id>, signatures, and state transitions locally. Zero dedicated validator fleet.
BTC On/Off-RampBuilt-in HTLC SwapsTrustless P2P swaps between real Bitcoin L1 and native $I0 coins using standard Hash Time-Locked Contracts.

2. Consensus, Vanity PoW & Fork Choice

2.1 Vanity-ID PoW (Zero Wasted BTC Fees)

An Ordinal inscription ID is <reveal_txid>i0. Because reveal_tx spends the commit_tx output (whose Taproot script commits to the exact block payload bytes), modifying any byte of the block changes commit_txid and therefore reveal_txid.

Miners grind non-content fields (e.g. nLockTime, miner nonce in payload, or commit/reveal tweaking) entirely offline until the display-order reveal_txid satisfies the difficulty target 000000…i0. Only once a valid hash is found do they broadcast commit + reveal on Bitcoin — failed hashes cost $0 in BTC fees.

2.2 Block Validity Rules

Every browser verifier rejects a block inscription B unless all 6 checks pass:

  1. Confirmed on Bitcoin: GET /r/inscription/<B.id> succeeds, B.id ends with i0, and B is confirmed in a Bitcoin block (btc_height(B)).
  2. Chain Continuity: B.prev equals the parent block’s ID (or G at height 1), B.height === prev.height + 1, and btc_height(B) > btc_height(prev) (at most one canonical i0 block per Bitcoin block).
  3. Anti-Premine Anchor: B includes btcRefHeight and btcRefHash, verified against GET /r/blockhash/<btcRefHeight>, where btc_height(prev) <= btcRefHeight < btc_height(B) and btc_height(B) - btcRefHeight <= 6.
  4. PoW Difficulty Target: Interpreting B.id.slice(0, 64) as a 256-bit unsigned integer satisfies \( \text{uint256}(B.\text{id}) \le \text{target}(B.\text{height}) \). Retargets smoothly every 72 blocks (~12h) toward 1 i0 block per Bitcoin block, clamped 0.25x–4x, with a minimum floor of 20 leading zero bits (00000…i0).
  5. Valid Transactions & Nonces: Every tx in B.txs has a valid signature, chainId === G.slice(0, 16), strictly sequential nonce === account.nonce + 1, and sufficient balance.
  6. Deterministic State Root & Diff: Running applyBlock(prevState, B) in pure BigInt integer math produces exact matches for B.stateRoot and B.diff (and B.checkpoint on checkpoint heights).

2.3 Fork Choice & Orphan Tie-Break

  • Primary: Highest cumulative PoW work (\( \sum 2^{256} / \text{target} \)).
  • Same-work tie-break: (1) Earliest Bitcoin confirmation block (lowest btc_height), then (2) lowest inscription_number from /r/inscription/<id>.

2.4 Block Discovery & Cold Recovery

  • Fast path: Miners announce confirmed blocks on Entmoot (#i0-blk: { id, height, prev }). Browsers cache tips in IndexedDB and re-gossip.
  • Cold recovery: Given any single latest block ID, any browser walks B.prev backwards via /content/<id> all the way to Genesis G without needing Entmoot.

3. Native Coin ($I0) & Miner Economics

Miners expend compute/electricity + real BTC L1 fees and earn:

  1. Fair-Launch Block Reward ($I0): Minted solely to B.miner on a Bitcoin-style halving schedule (0% premine). Serves as the quote currency for all meme-coin curves.
  2. 100% of Protocol Trading & Launch Fees: 1.0% on every BUY/SELL + flat launch fee on every LAUNCH + optional priority tips.

4. MEV-Free Batch-Auction Bonding Curve

All curve math lives inside Genesis Inscription G in deterministic BigInt arithmetic.

4.1 Six Primitives

TRANSFER, LAUNCH (referencing any Bitcoin Ordinal inscription_id as permanent meme art), BUY, SELL, HTLC_LOCK, and HTLC_CLAIM / HTLC_REFUND.

4.2 Uniform Batch Clearing

For reserves \( X = V_{I0} + R_{I0} \) and \( Y = V_{\text{tok}} + R_{\text{tok}} \), net buy inputs \( B = \sum b_i \) (after 1% fee), and net sell inputs \( S = \sum s_j \) (after 1% fee):

\[ \text{out}_{\text{tok}} = \left\lfloor \frac{B \cdot (Y + S)}{X + B} \right\rfloor, \qquad \text{out}_{I0} = \left\lfloor \frac{S \cdot (X + B)}{Y + S} \right\rfloor \]

Payouts distribute pro-rata (\( \lfloor b_i \cdot \text{out}_{\text{tok}} / B \rfloor \) and \( \lfloor s_j \cdot \text{out}_{I0} / S \rfloor \)), and reserves update to \( X^{\prime} = X + B - \text{out}_{I0} \), \( Y^{\prime} = Y + S - \text{out}_{\text{tok}} \).

  • Every buyer and seller receives the exact same uniform price \( P = (X + B) / (Y + S) \) (zero sandwiching / MEV).
  • \( X^{\prime} \cdot Y^{\prime} \ge X \cdot Y \) and \( R_{I0}^{\prime} \ge 0 \) hold mathematically; reduces identically to \( x \cdot y = k \) when only buys or sells occur.
  • Every included order must satisfy actualOut >= order.minOut.
  • Crossing GRAD_TARGET permanently locks the curve into a constant-product AMM pool using the same formula.

4.3 Live UX & Sandbox Keys

  • Signed orders over Entmoot #i0-tx update charts and balances in <1s as Pending (Entmoot) and flip to Final (Bitcoin) when 000000…i0 confirms.
  • Genesis Inscription G holds a local BIP-340 Schnorr trading keypair in IndexedDB (exportable via 12-word recovery phrase) because ord sandboxes iframes from external browser wallet extensions.

5. Trustless BTC ↔ $I0 Swaps (HTLC)

  1. Alice ($I0 seller) and Bob (BTC buyer) match on Entmoot.
  2. Alice locks $I0 on eyezero via HTLC_LOCK (H = SHA256(S), timeout T + 18).
  3. Bob locks real BTC on Bitcoin L1 in a standard Taproot/P2WSH HTLC (H, timeout T + 6).
  4. Alice claims Bob’s BTC on Bitcoin L1 by revealing S.
  5. Bob submits HTLC_CLAIM(swapId, S) on eyezero; browsers verify SHA256(S) === H and release $I0 to Bob.

6. Block Format, Checkpoints & v1 → v2 Scaling

{
  "v": 1,
  "h": 4201,
  "prev": "0000007a...9f1ei0",
  "btcRef": { "h": 924110, "hash": "00000000000000000002..." },
  "miner": "<32-byte pubkey>",
  "nonce": 18492011,
  "stateRoot": "<32-byte SHA-256 Merkle root>",
  "diff": [ [104, 0, "495000000"], [104, 17, "12840000"] ],
  "checkpoint": null,
  "txs": [ "...compact signed txs..." ]
}
  • v1: prev + diff + checkpoint + raw txs → ~3,500–4,200 txs / block (~6–7 TPS), pure JS verification, 100% on Bitcoin.
  • v2: Swap txs for a ~200-byte ZK proof while keeping diff on Bitcoin → hundreds of TPS, ~5 ms browser verification, and zero Entmoot data-availability risk.

Open Decisions

These v1 parameters are still open before freezing the Genesis Inscription and starting implementation:

ParameterSuggested DefaultAlternatives
PoW Minimum Floor20 leading zero bits (00000…i0)16 bits (easier laptop mining at launch) vs 24 bits (000000…i0, heavier GPU start)
Native $I0 Emission1,000 $I0 / block, halving every 21,000 blocks (~5 months)Bitcoin-like 4-year halving (210,000 blocks)
Trading / Launch Fee1.0% trade fee + 10 $I0 launch fee (100% to miner)0.5% lower rake, or burn the launch fee
Token GraduationLocks into AMM pool at 50,000 $I0 curve liquidityNever graduate (permanent bonding curve)
First Prototype TargetLocal browser simulator + real Entmoot mempoolGo straight to a Bitcoin regtest / signet vanity miner CLI + inscription

Milestones

  1. v0.1 — Deterministic Rules Engine: Pure BigInt JS implementation of applyBlock(), uniform batch clearing, HTLC lock/claim/refund, and unit tests proving solvency and zero-MEV order independence.
  2. v0.2 — Entmoot + Browser Sandbox Demo: Self-contained HTML bundle connecting over entmoot-lite WebRTC-direct with live <1s pending charts and simulated vanity mining.
  3. v0.3 — Bitcoin Signet / Regtest Miner CLI: Offline commit + reveal vanity grinder producing real 00000…i0 inscriptions confirmed on Signet and verified inside a local ord server.
  4. v1.0 — Mainnet Genesis Inscription: Freeze G, publish open-source miner CLI, and launch.