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 proof | Maxy's modified proof | |
|---|---|---|
| What it establishes | A transaction is in a block | One output paid an exact amount to an exact script |
| What it is bound to | Nothing: any included transaction passes | One order: the amount, script, confirmations and window the user signed |
| Header checks | Proof of work and linkage. Some clients skip difficulty | Proof of work, difficulty and linkage for every header, with reorganisations handled on chain |
| Who can relay and prove | Varies by design | Anyone can submit headers, and anyone can submit a sell's proof |
| Settlement | Not part of the proof: the application decides what to do with it | Built in: the escrow is released in the same transaction as the check |
| If the solver fails | Not covered by the proof | A bonded solver forfeits its bond to the user, and every escrow has an exit |
| Who signs off | Depends on the operator | Nobody: no server, committee or oracle approves a payment |
| Replay | Not covered by the proof | Each Bitcoin output settles one order only |
Five things make it stronger.
- 01 It proves the right thing. Inclusion alone shows that a transaction exists. Maxy's proof shows that this order was paid.
- 02 It checks more of every header. Difficulty is validated as well as proof of work, and reorganisations are followed on chain.
- 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.
- 04 It is open. Anyone can relay headers or submit a sell's proof, so no single relayer can stall a payout.
- 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.