Verify a witness record yourself

You do not have to take this site's word for a record. witness-verify checks it on your own computer, with no account: it needs Python 3 and nothing else.

Steps

  1. Download the record's bundle: the signed record, its seal, the witness's key list and the methods code the record names.
    curl -o bundle.tar https://evidence-dev.onedroid.ai/api/witness/records/cd1c48be3b2a7190cae7f477e773bd29dc572b1b4a31f26e8bda819023a820f8/bundle
  2. Get witness-verify, the verifier: one Python 3 file, claim_witness/verify.py, standard library only (it uses the Python cryptography library when that is installed).
    git clone -b v1/claim-witness https://github.com/OneDro1d/onedroid-witness
  3. Make a folder for the bundle.
    mkdir bundle
  4. Unpack the bundle into it.
    tar -xf bundle.tar -C bundle
  5. Run witness-verify on the folder.
    python3 onedroid-witness/claim_witness/verify.py --bundle bundle

The example is a public record listed on the records page: /r/cd1c48be3b2a7190…. Any record id works the same way.

What it checks

  • the key list the bundle carries
  • the witness's signature on the record
  • the ids and commitments: the record id is the hash of what was signed
  • the seal: the record and its path give the batch root, the batch header is signed by a key of the key list, and every anchor landed
  • that the signing key was valid at the anchor time (at the record's own time while the seal is still pending)
  • the files of the bundle, and a re-run of the method from the methods code the record names, where the method can be re-run offline
  • the agent's signature, when the record carries one

Each check prints PASS, FAIL or SKIP with its name, and the last line is RESULT: PASS or RESULT: FAIL. The exit code is 0 when every check that applies passed and 1 when one failed.

The seal on the public chain

To check the anchor transaction on the public chain as well, add --rpc https://sepolia.base.org (or another Base Sepolia JSON-RPC address you trust): witness-verify then reads it and prints PASS seal-chain only when it carries this batch's fingerprint, in the block and at the time the seal names. Without --rpc that line is a SKIP and nothing goes over the network.

A private record

A private record: its owner, or a holder of a share link, adds the disclosure from GET /witness/records/<record id> with --disclosure FILE, and each evidence file with its own --evidence FILE, to check the commitments and re-run the method.