#In the browser
Open the verifier page and paste an export or open its file. Then add the key history it was signed under and press Check.
The verdict and every finding appear in the page. Nothing you paste or open is sent anywhere.
#With Node
Download the module, compare its SHA-256 with the value below, and run it on an export.
curl -fsSO https://weio.ai/verify/kit/handoff-verify.mjs
sha256sum handoff-verify.mjs
node handoff-verify.mjs verify RECORD.json --keys keys.json
node handoff-verify.mjs verify RECORD.json --keys keys.json --json
The flags are those of section 13 of the specification: --known-heads, --mirror, --require-anchored, --update-known-heads, --keys and --json.
The command opens no network connection and reads no clock.
Module: /verify/kit/handoff-verify.mjs, tested on Node 24.21.0, licence Apache-2.0, SHA-256 70644cfe1fe0ecc5117023a8dece776b98d44e43e67522f6c43fcfcb339f1bb5.
#The key history
The verifier takes the key history from --keys or from the mirror, and never from the export itself.
That is why both pages ask for two files: the export, and the keys.json it was signed under.
#Results
A verifier answers ACCEPT, REJECT, DETECT or ERROR, with exit codes 0, 1, 2 and 3.
ACCEPT means the export checks out. It does not mean the delivery was accepted or paid, or that any party was vetted.
A signature shows which key signed, not which person.
With no earlier head and no mirror, a rewrite before any head the verifier has seen cannot be detected, and the verifier says so.
The verification algorithm is section 10 of the specification, and its results are section 11.
#Sample
The files below are synthetic test data taken from the conformance fixtures. They are not a real handoff and name no real party.
Fixture V01-1 expects ACCEPT. Fixture V02-1, the same export with one hex digit changed, expects REJECT with the code SIG_W_INVALID.
- Sample export (V01-1) SHA-256 06b9a24343813d5066000e464c8dd4ed3e25e711aa4a5a4a762fba64358beea1
- Changed export (V02-1) SHA-256 30801f7709d602a3579cb2079f3f50ba8e83d4753e94eb5e9e6e4cea50505350
- Key history SHA-256 72b43f98d33315f788b76ba8bf3bdb721fdac385a11bd5cd633dba9b6f97380a
Both exports carry their own heads and proofs. The fixtures themselves: verify/V01-1.json, verify/V02-1.json.
With the kit, the sample export prints ACCEPT and exits 0, and the changed copy prints REJECT with SIG_W_INVALID and exits 1.
node handoff-verify.mjs verify V01-1.export.json --keys keys.json # ACCEPT, exit 0
node handoff-verify.mjs verify V02-1.export.json --keys keys.json # REJECT SIG_W_INVALID, exit 1
On the verifier page, Load the sample does the same.