Skip to content
Every photo now comes with a sealed evidence PDF
Docs Verify a seal yourself

Verify a seal yourself

A seal is only useful if someone who does not trust us can check it. Everything needed is public.

What is signed

The record is a JSON object with the file's SHA-256 and size, the capture context (times, device, network), the location and the ID of the signing key. It is serialised canonically: keys sorted at every level, no whitespace, UTF-8, slashes and non-ASCII characters not escaped. record_text in GET /v1/captures/{id}/record is that exact text. Verify against it, not against a re-serialised copy.

The four checks

  1. File: SHA-256 of the file you hold equals record.file.sha256.
  2. Key: record.key_id equals the key_id returned with the signature, and that key is listed at /.well-known/authintix-seal-key. Retired keys stay listed so old records keep verifying.
  3. Signature: the base64 signature is a valid Ed25519 signature of record_text under that public key.
  4. Time: the RFC 3161 token's message imprint is SHA-256 of record_text, and the token is signed by the authority named in it.

The SDKs do the first three offline:

$rec  = $ax->captures->record($id);
$file = $ax->captures->original($id);
$v = Authintix\Seal::verify($rec['record_text'], $rec['signature'], $rec['key_id'], $ax->sealKeys(), $file);
var_dump($v['valid']);
Check the timestamp with OpenSSL
# token.tsr = base64-decoded timestamp_token; record.json = record_text exactly
openssl ts -verify -data record.json -in token.tsr -token_in \
  -CAfile authority-roots.pem

What a seal does not prove

It proves the file has not changed since it was sealed, when it existed, that it came through a live camera session and where the phone said it was. It does not prove the scene was genuine, that location was not spoofed on a modified phone, or who held the phone. Your process should treat those as separate questions.