Visto evidence checker

Check an evidence file with the script

Anyone holding a Visto evidence file can check it without Visto. It is free and needs no account. The page Check an evidence file does the quick part in your browser. The script below does everything that page does, plus the signed timestamps.

1. Get the script

It is one file with no other parts, and you can read it before you run it.

Download verify-record.mjs

Its SHA-256, so you can confirm your copy is unchanged:cef5e952d0427873dd99c8a6c8a37bd7ebf7471e31f472ed7eda4139732cc209

Read it in your browser before you run it.

2. Run it

  1. Install Node.js 18 or newer, and OpenSSL. OpenSSL is already on macOS and Linux.
  2. Put the script and your evidence file in the same folder.
  3. Run this, with your own file name:
    node verify-record.mjs Visto-evidence-Harbor-2026-10-24.json

3. Read the result

The last line gives one result for the whole file.

What this does not show

It does not show that what was entered is true, or who entered it. It cannot tell whether events were left out after the last signed timestamp. It does not check the Bitcoin proof: the script saves the proof next to your file, and you can check it by dropping both saved files onto opentimestamps.org.

The manual way (what the script does)
  1. Fingerprints. For each event in order, hash = SHA-256(prevHash + "|" + material), as UTF-8 text with the hash in lower-case hex. The first prevHash is 64 zeros. Every hash must match, and each prevHash must equal the hash before it.
  2. Details. material is the exact text that was fingerprinted: id|record|item|kind|actor|label|version|data|time. The event's other fields must say the same thing.
  3. Signed timestamps. For each entry in timestamps: the digest must equal the SHA-256 of its lines joined with a newline, and one line must be recordId:count:hash, where hash is the fingerprint of event number count in this file. Then save rfc3161Token (base64) as token.tsr, download cacert.pem and tsa.crt from freetsa.org, and run:
    openssl ts -verify -digest DIGEST -in token.tsr -CAfile cacert.pem -untrusted tsa.crt
    It prints Verification: OK.