Auditor guide
How to check a Tollgate export yourself, offline, without trusting Tollgate.
What an export contains
A population export lists every change alive in the period you asked for, one file per record type, as JSON Lines with a CSV copy of the same columns. A file called manifest.json lists every file with its SHA-256, and manifest.sig signs it.
An evidence pack has one HTML page per change and an index. Each page works without a network: no scripts, nothing fetched. A file called bundle.json lists every file with its SHA-256, and bundle.sig signs it.
The same request gives the same files, so two exports of one period can be compared byte for byte.
Verify an export offline
- Get verify-export.py for the Tollgate release that made the export from the organisation’s Tollgate administrator. It needs Python 3 and the cryptography package.
- Get the export’s public key. Each page of an evidence pack prints its key ID and public key in its footer; this server publishes its keys at the address below.
- Check that the key ID is the first 16 hexadecimal characters of the SHA-256 of the public key. The script does this for you.
- Run the command below on the folder that holds the export.
This server’s export keys (JSON)
This server has not published an export key yet.
Command
python3 verify-export.py <dir> --key-id <16 hex> --public-key <base64> - Exit code 0 and VERIFIED: the signature is good and every file matches the list.
- Exit code 1 and NOT VERIFIED with the reason: a file was added, removed or changed, or the key does not match.
- Exit code 2: the command was not given what it needs.
How the audit trail is anchored
Tollgate keeps its audit trail as a chain of hashes, one segment per month. Each segment starts from the last hash of the one before, so changing any past record changes every hash after it.
Once a day, the latest hash of each open segment is meant to be written outside Tollgate: as a new version of a page in a separate knowledge base, and in an email to a mailbox the organisation chose.
To check a hash, compare it with the page version of that day and with the email, whose headers carry the time it was received. Ask the organisation where its anchors are kept.