Skip to content
Docs

Evidence bundle verifier

Download the open verifier and check an evidence bundle on your own machine.

01Download

The verifier is one open Python file. It needs Python 3.10 or later, and the cryptography package to check Arc’s signature. Read it before you run it: it is short, and it is the whole of the check.

verify_evidence_bundle.py

02Run it

  1. 1
    Download an action’s bundle from its Evidence record in Audit & Evidence.
  2. 2
    Get Arc’s public key: from Audit & Evidence → Evidence integrity, or from the public endpoint below.
  3. 3
    Run the verifier on the bundle with that key.
pip install cryptographypython verify_evidence_bundle.py arc-evidence-7d0c9e2a-….json \  --public-key VBuBG5eocBo7dVaOyTQlhtioWJaqvpODDK3G28_p9eQ

Example

Pass the key with --public-key so the check does not rely on anything inside the bundle. Without it, the verifier uses the key in the bundle and prints its key id for you to compare with Arc’s published key.

03What it checks

  • No entry is missing: the sequence numbers run without gaps.
  • Every entry links to the one before it.
  • Every disclosed record matches its payload hash.
  • Every entry hash is correct.
  • The last entry is the signed head.
  • Every record of the action is disclosed in the bundle.
  • Arc’s Ed25519 signature on the head is valid.

04Results

Exit codeMeaning
0The bundle is intact.
1It is not. Each problem found is listed.
Verified: 6 chain entries up to signed head 1846, 4 records of decision 7d0c9e2a-… intact.

Example output

How the hashes and signature are formed: Evidence and verification.