Find something... ⌘K

Maxy architecture / Bitcoin proofs

Proof versus SPV

How Maxy's modified proof compares with a simple SPV proof. It is for engineers who run their own Bitcoin SPV client. How the proof works: Bitcoin verification.

A simple SPV proof answers one question: is this transaction in a block with work on top of it? A swap needs a harder question answered: was this order paid, in full, to the right place, in time? Maxy's proof answers that one.

Simple SPV proofMaxy's modified proof
What it establishesA transaction is in a blockOne output paid an exact amount to an exact script
What it is bound toNothing: any included transaction passesOne order: the amount, script, confirmations and window the user signed
Header checksProof of work and linkage. Some clients skip difficultyProof of work, difficulty and linkage for every header, with reorganisations handled on chain
Who can relay and proveVaries by designAnyone can submit headers, and anyone can submit a sell's proof
SettlementNot part of the proof: the application decides what to do with itBuilt in: the escrow is released in the same transaction as the check
If the solver failsNot covered by the proofA bonded solver forfeits its bond to the user, and every escrow has an exit
Who signs offDepends on the operatorNobody: no server, committee or oracle approves a payment
ReplayNot covered by the proofEach Bitcoin output settles one order only

Five things make it stronger.

  1. 01 It proves the right thing. Inclusion alone shows that a transaction exists. Maxy's proof shows that this order was paid.
  2. 02 It checks more of every header. Difficulty is validated as well as proof of work, and reorganisations are followed on chain.
  3. 03 No one approves a payment. The contracts verify and settle together, with no server, committee or oracle in the path. The verifier is not a proxy, so its code cannot be swapped.
  4. 04 It is open. Anyone can relay headers or submit a sell's proof, so no single relayer can stall a payout.
  5. 05 It is backed by economics. A solver pays the Bitcoin first and stakes a bond. If it fails, the user's coins return from the settler with that bond.

The proof builds on SPV's headers and Merkle branches and adds to them. The verifier validates headers; it does not run Bitcoin scripts or track unspent outputs.