README.md raw

The verdict, in the page and against the nodes

In the page

01-verdict.png is the wallet page after wallet.verify(dossier): the verdict, "verified by 2 of 2 independent sources", the 38 checks that passed (external ones naming the sources that agreed), and the failed and unverifiable lists kept separate — here both empty. The dossier is dossier.json; the page only pasted it and rendered the answer.

The dossier was produced and decided outside the browser too, by the same Go code:

/tmp/tinywallet-verify -dossier dossier.json
verdict: pass
verified by 2 of 2 independent sources

That is the point of the CLI: a verdict can be reproduced without a browser, which is what makes it evidence rather than a UI state.

Against the nodes

differential.log is our transaction parser compared with both rig nodes' own decoderawtransaction at their tip blocks:

btc: block 25173 tx 2760472cc0243ad6… outputs=1 inputs=1 match
blake: block 43883 tx a3d94dc174f1ceb2… outputs=2 inputs=1 match
failures: 0

txid, locktime, every input sequence, and every output value and script. differential.py drives it over JSON-RPC with the node's cookie; it needs the rig running (blake-swap/scripts/test-nodes).

The fork-specific half — 164-byte headers and the BLAKE2b proof of work — is pinned by the 24-block fixture in nostrino/pkg/btcwire/testdata, which chains against the fork's own defaultAssumeValid, and by the browser scan of the whole fork from the checkpoint.

The baked sources

02-presets.png is the panel's source list, fetched from pkg/verify/presets.go through the wasm: mempool.space (recommended first, the most widely used explorer), blockstream.info, btcscan.org, mempool.ninja for bitcoin, and the forked chain's one public explorer, a mining pool's pruned node whose note says it cannot confirm an old transaction. All five start selected, because a verdict needs a quorum and one ticked box would make it unreachable.

/tmp/tinywallet-verify -probe was run against the live endpoints:

mempool.space    btc  tip 972945 … fee 0 sat/vB
blockstream.info btc  tip 972945 … fee 0 sat/vB
btcscan.org      btc  tip 972945 … fee 1 sat/vB
mempool.ninja    btc  tip 972945 … fee 0 sat/vB
rabid.pool       xbt  tip 974974 … fee 1 sat/vB

Three of the four publish a fee estimate; all four agree on the head, which on one chain is the expected state and not an independence proof.

03-fetch-fails-closed.png is the fetch path with a synthetic dossier: the page computes the txids in the wallet, asks all four bitcoin sources, gets "not found" from every one, and the verdict is UNVERIFIABLE with "4 of 4 sources did not find …". A fabricated transaction cannot be made to pass by supplying sources, and absence is reported as a sample rather than as proof.

What this does not do

The external facts in dossier.json are supplied by the caller. In the page, the browser fetches them from the indexers a user configured; the adapter has no default, and the engine hashes every returned transaction back to the txid it asked for. A page that lies about its own dossier defeats itself: the local checks recompute from the bytes, so an invented transaction cannot be made to commit to different terms.