Verification¶
AuditProofs are self-contained. You can verify one without trusting Nanorix, without an API call, and without an internet connection.
Three Verification Methods¶
Method 1: Web Verifier (Recommended for non-developers)¶
Go to nanorix.io/verify and drag-and-drop your AuditProof JSON file.
The verifier runs entirely in your browser. No data is sent to any server. It uses the Web Crypto API for SHA-512 and an inlined Ed25519 implementation — both execute client-side.
The verifier checks:
- All 8 chain steps are present
- Hash chain integrity (each step recomputes correctly from the previous)
final_hashmatches step 8'schain_hash- The Ed25519 signature is valid against the embedded public key
Method 2: API Endpoint¶
The endpoint takes the AuditProof under a cdp key, so wrap the file before sending it:
jq '{cdp: .}' auditproof.json \
| curl -X POST https://api.nanorix.io/v1/verify \
-H "Content-Type: application/json" \
--data-binary @-
Response:
{
"valid": true,
"checks": {
"cdp_version_valid": true,
"chain_integrity": true,
"final_hash_valid": true,
"step_count": 8,
"signature_valid": true,
"algorithm": "Ed25519",
"verification_scope": "trust_chain_anchored: the signing key resolved to an authority in this service's published trust-chain manifest, which verified against its pinned identity fingerprint, and the signature verified against that key (stage 8). This establishes which published authority's key produced the signature over the signed message (the final chain hash for a 1.0 proof, and for 2.1 and 2.2 the canonical-view hash recomputed from the document's fields); content that message does not cover is not attested by the signature, and the signature does not by itself establish that the events the document describes occurred."
},
"verified_at": "2026-...Z"
}
valid is the answer; checks shows what established it. valid is true
only when the document's checks hold and its signing key was resolved against
the published trust chain; that response carries a checks.verification_scope
beginning trust_chain_anchored:, a sentence saying what the verdict
established and what it did not. When the checks hold but the key was not
anchored here, valid is false, failure_reason is absent, and the scope's
prefix, embedded_key_integrity:, stripped_projection: or
declared_hash_only:, says what was checked; only trust_chain_anchored:
establishes which published authority's key signed the document. Such a response is
not a finding that the document was altered. Earlier builds of this service
answered valid: true on those documents, with the same scope, and older
builds could answer valid: true with no scope; read the prefix, not the full
sentence; the section below explains each case. The offline nanorix-verify CLI
(Method 3) reports more detail, such as canonical-hash and trust-chain results.
This endpoint is public, requires no authentication, and is rate-limited to 60 requests per minute per IP address (a 429 carries retry_after). The submitted document is verified and discarded; it is not stored. One side effect exists: when the verdict is valid: true, which only a verdict anchored to the published trust chain is, and the document's capsule_id matches a proof this service holds, a cdp.verified webhook event is dispatched to the owning organisation's subscribed endpoints. Its payload carries the capsule_id, the stored proof id, the time and the checks; it carries no caller IP address. Each such delivery, payload included, is recorded as a row in the owner's webhook delivery log.
What the online endpoint checks¶
A full 2.1 / 2.2 AuditProof runs the same eight-stage ladder as the offline CLI.
On the Evaluation Sandbox the service anchors it to its published trust-chain
manifest (/.well-known/trust-chain.json, verified against the identity
fingerprint published beside it) when the document's authority_id is one the
manifest carries. A key version the manifest does not hold is refused as
signing_key_version_unknown. A document that names an authority the manifest
does not carry is checked against the public key embedded in the document, and
when its checks hold it answers valid: false with no failure_reason and an
embedded_key_integrity: scope saying the key was not resolved against a
published root here. A BYOC deployment's own key, a self-hosted install and a
key you have not established trust in all look the same to this endpoint, which
cannot tell them apart. What anchors each differs. This release does not start
with an install signing authority until the hybrid signer ships; until then a
self-hosted proof, BYOC included, names a Nanorix authority and no key list
anchors it. Once that signer ships, a proof under a customer's own authority is
anchored offline (--trust-chain with --identity-fingerprint) against a key
list that holds its key under the authority and key version the document names.
The customer signs that list with its own offline identity key and gives the
list and that key's fingerprint to its assessor and, if it has one, its client;
neither is published. The list can come by any private route; the fingerprint
comes through at least two channels that neither the customer's servers nor
Nanorix control. A key you have not established trust in is anchored only when
its holder gives you a list and fingerprint the same way.
Only a verdict whose verification_scope begins trust_chain_anchored: is
valid: true. 1.0 documents run the same ladder, under the manifest whatever
authority they name (a 1.0 signature does not cover authority_id), so one
whose other checks hold and that names an authority the manifest does not carry
is refused as signing_key_version_unknown; a 1.0 signature covers
final_hash alone, so a 1.0 document is never anchored, whether or not the
service loaded its manifest, and one whose checks hold returns valid: false
with an embedded_key_integrity: scope. 2.0-labelled documents are checked
against the embedded key only and are never anchored, so a 2.0 projection whose
checks hold returns valid: false with a declared_hash_only: scope, which
says nothing about who signed. The ladder also requires the step at each position
to carry the canonical subsystem for that position (eee_namespace through
capsule_destroy), so a document with swapped, repeated or relabelled steps
fails the chain walk (step_hash_mismatch when the chain still has 8 steps; a repeated step that lengthens it is step_count_invalid), and a 1.0 scope states that the
signature covers final_hash alone, which binds destroyed_at (or, with none, the
timestamp part of the key id) and the two optional Merkle roots, and not the
capsule_id itself (only through record receipts, which a holder can remove), the
region or the key id. Every 2.0-labelled document without a customer_declared_activity_root (one with it is refused first as unsigned_field_populated) goes to a 2.0 check that this service keeps for
documents already delivered; 2.0 is a retired format that the offline verifiers
refuse (see Method 3). A full 2.0 document cannot succeed here: it lacks the fields the 2.0 check
requires, so it is reported as step_count_invalid (found 0) without its
steps being read or its signature checked. No shipped verifier checks a full
2.0 document as the service emitted it; only a document carrying the summary fields that check requires, as a 2.0 projection does, can pass that check, and it is still never valid: true. A
2.1 / 2.2 verification_cdp projection is checked
on a reduced path and carries a stripped_projection: scope on that path's
verdicts, whether its checks hold or not; it is never anchored, so it is never
valid: true. That scope says its checks hold only when both the signature
over the declared document_hash and the reproduced chain terminus are found,
and that the signature binds the declared document_hash, with one leading sha512: prefix removed if present, and
nothing else on the projection.
A 2.0 verification_cdp projection takes the 2.0 check: a verdict whose checks
hold carries a declared_hash_only: scope and is valid: false. That check requires the projection's summary fields, compares
destruction.chain with the string 8/8 steps (or the legacy 8/8 form older
documents carry) without verifying the chain, requires destruction.chain_hash
to be a sha512: prefixed 128-digit hex string, and checks the Ed25519
signature over the declared document_hash string under the embedded key. That
string is all the signature covers: no published rule lets a verifier recompute
the hash from the document, so no other field of the document is shown to be
covered, the signing key is not resolved against the published trust chain, who
signed is not established, and a 2.0 verdict is never anchored.
The partial projection returned when the instance handling the destroy did not
track the capsule's runtime (see Partial Proofs)
is now labelled with the partial document's own version, 2.2, so it takes the
2.1 / 2.2 projection path and not the 2.0 check. It is unsigned and carries
0/8 steps — partial with an empty chain_hash, so it is reported
valid: false with a stripped_projection: scope and failure reason
step_hash_mismatch. A partial projection issued earlier with the label 2.0
takes the 2.0 check and is reported as step_count_invalid (found 0). Its
environment, data_ingested and data_extracted fields are null when the
service holds no observation for them, and the verdict is the same either way.
| Verdict | valid |
verification_scope |
failure_reason.type |
|---|---|---|---|
| Anchored: authority in the manifest, key resolved, signature verified | true |
present (trust_chain_anchored: ...) |
absent |
| 2.1 / 2.2 authority not in the manifest: integrity only | false |
present (embedded_key_integrity: ...) |
absent |
| Service could not load its manifest: integrity only, nothing anchored | false |
present (embedded_key_integrity: ...) |
absent |
2.1 / 2.2 verification_cdp projection: never anchored |
false |
present (stripped_projection: ...); not on a projection refused first for a malformed customer_declared_activity_root, nor on one that lacks attestation or destruction, has no string destruction.chain_hash, or declares another signing_mode (those go to the full ladder) |
absent when both of its checks hold |
1.0 document: never anchored (the 1.0 partial document of a destroy that did not hold the capsule's runtime is reported as step_count_invalid with found 0) |
false |
present when its checks hold (embedded_key_integrity: ...); absent otherwise |
absent when its checks hold |
2.0-labelled document: declared hash only, never anchored (a full 2.0 document is reported as step_count_invalid with found 0) |
false |
present when its checks hold (declared_hash_only: ...); absent otherwise |
absent when its checks hold |
| No signature in the document | false |
absent | required_field_missing |
Non-Ed25519 algorithm, or (on a signed document) signing_mode other than nanorix_only (full 2.1 / 2.2 document) |
false |
absent | algorithm_unsupported |
Unknown or missing cdp_version |
false |
absent | cdp_version_unsupported / required_field_missing |
| Gate or chain failure (stages 2-3) | false |
absent | for example step_hash_mismatch, unsigned_field_populated, field_malformed |
final_hash does not equal the chain terminus |
false |
absent | final_hash_mismatch |
| Signature or anchor failure | false |
absent | signature_mismatch, signing_key_version_unknown, authority_revoked |
Nanorix does not hold the key of a document under an authority this service's
manifest does not carry. This release does not start with an install signing
authority until the hybrid signer ships; until then a self-hosted proof names a
Nanorix authority and no key list anchors it. Once it ships, anchor such a
document with the key list its holder signed for that authority, which can come
by any private route, and that list's identity fingerprint, which comes through
at least two channels that neither the holder's servers nor Nanorix control. A
BYOC customer gives both to its assessor and, if it has one, its client, and
publishes neither. The command:
nanorix-verify <proof.json> --trust-chain <key-list.json> --identity-fingerprint <pin>.
Wire-class change: unsupported algorithm or signing mode
On a full 2.1 / 2.2 document, a declared signature_algorithm or
attestation.algorithm other than Ed25519, or a signing_mode other
than nanorix_only, is now reported as algorithm_unsupported
("found": "<algorithm>" or "found": "signing_mode=<mode>"). It is never
signature_mismatch and never a partial success: the mode is inside the
signed content and anyone can write it, so reporting "valid apart from the
signature" would let a downgrade through. The booleans for these inputs are
signature_valid: false with cdp_version_valid, chain_integrity and
final_hash_valid all true. Earlier builds never read the declared
algorithm, so a document carrying a non-Ed25519 algorithm could come back
valid: true; they reported a dual_signature document as
signature_valid: false alone, a tee_attested document as
chain_integrity: false, and any other unrecognised mode as
cdp_version_valid: false. A client must now expect
algorithm_unsupported for a signed document. A non-Ed25519 algorithm is
refused whether or not the document is signed, but a signing_mode is
reached only on a signed document: an unsigned document declaring another
mode is reported as required_field_missing for the absent signature
field, and a projection-shaped document (no chain, no activity)
declaring one goes to the full ladder and is reported as
required_field_missing for chain. The chain checks run first: a
document whose chain is also broken reports the chain failure. 1.0 and 2.0-labelled
documents (a 2.0 projection included) check neither the algorithm nor the
mode. The 2.1 / 2.2 projection does not check the algorithm, but a
projection declaring a signing_mode other than nanorix_only goes to the
full ladder.
Method 3: Offline Verification¶
For maximum independence, verify with standard cryptography libraries and no network calls. The chain formula is published in the AuditProof specification.
The offline verifiers (the nanorix-verify CLI, the Python, TypeScript and Go libraries and the web verifier) support cdp_version 1.0, 2.1 and 2.2. A document that declares 2.0 is a retired format: a 2.0 signature covers a hash that no published rule lets a verifier recompute from the document, so every offline verifier refuses it at the version gate with cdp_version_unsupported and found: "2.0", whatever else the document carries.
A 1.0 proof is never anchored by an offline verifier, with or without a key list. Its signature covers final_hash alone, and final_hash binds destroyed_at and the two optional Merkle roots (record_receipts_merkle_root and parent_proofs_merkle_root). It does not bind the capsule_id itself (only through record receipts, which a holder can remove), the region or the key id. A key list can show which key made such a signature, but not that it was made for this capsule. Under a key list a 1.0 proof is checked as a 2.1 proof is: an unknown key version, a signature that does not verify against the listed key or a revoked authority refuses it. Where a 2.1 proof would be anchored, a 1.0 proof ends at stage 7 with status not_anchored (exit 4 from nanorix-verify, the Go verifier and python -m nanorix verify), and its result names no capsule and no region.
import json, hashlib, base64
from nacl.signing import VerifyKey
GENESIS = hashlib.sha512(b"").hexdigest()
with open("auditproof.json") as f:
proof = json.load(f)
# The 8 canonical method constants (spec-fixed; the serialized
# `operation` field is descriptive and is NOT a hash input)
METHODS = [
"procfs_verification", "mountinfo_verification",
"dod_5220_multipass_wipe", "ed25519_key_destruction",
"credential_incineration", "merkle_tree_verification",
"hash_chain_validation", "capsule_lifecycle_verification",
]
# 1. Recompute the full hash chain (all versions)
assert len(proof["chain"]) == 8, "complete proofs carry exactly 8 steps"
prev = GENESIS
ts = proof["destroyed_at"]
for i, (step, method) in enumerate(zip(proof["chain"], METHODS)):
material = b"\x00".join([
prev.encode(), step["subsystem"].encode(), b"destroy",
method.encode(), ts.encode(),
])
recomputed = hashlib.sha512(material).hexdigest()
if i == 7: # step 8 is amended when the proof carries receipt or parent roots
roots = [proof[k].removeprefix("sha512:") for k in
("record_receipts_merkle_root", "parent_proofs_merkle_root") if proof.get(k)]
if roots:
recomputed = hashlib.sha512(
b"\x00".join([recomputed.encode(), *(r.encode() for r in roots)])
).hexdigest()
assert step["chain_hash"] == f"sha512:{recomputed}", f"chain broken at step {step['step']}"
prev = recomputed
assert proof["final_hash"] == proof["chain"][-1]["chain_hash"], "final_hash mismatch"
# 2. Verify the Ed25519 signature (raises on failure). Only 1.0 signs a
# value the document stores (final_hash). 2.x signs a hash of the canonical
# view that the document does not store; see the note below.
if proof["cdp_version"] == "1.0":
pub = base64.b64decode(proof["attestation"]["public_key"].removeprefix("base64:"))
sig = base64.b64decode(proof["attestation"]["signature"].removeprefix("base64:"))
message = proof["final_hash"].removeprefix("sha512:").encode()
VerifyKey(pub).verify(message, sig)
print("chain intact, signature valid")
else:
print("chain intact; for the 2.x signature use nanorix.verifier.verify(proof)")
Requires: pip install pynacl
Full 2.x canonical recomputation
For 2.x proofs the snippet above proves only that the chain recomputes. The 2.x signature is over the SHA-512 of the document's canonical (RFC 8785) field view, which the shipped verifiers recompute from the document; the proof stores no hash of it. For the signature check with one call, use nanorix.verifier.verify(proof) from the Python SDK — it runs entirely offline. A proof without destroyed_at (an early 1.0 proof) also needs the SDK verifier, which recovers the timestamp from attestation.key_id.
const fs = require('fs');
const crypto = require('crypto');
const nacl = require('tweetnacl');
const proof = JSON.parse(fs.readFileSync('auditproof.json'));
const sha512hex = (buf) => crypto.createHash('sha512').update(buf).digest('hex');
// 1. Recompute the full hash chain
if (proof.chain.length !== 8) throw new Error('complete proofs carry exactly 8 steps');
const METHODS = [
'procfs_verification', 'mountinfo_verification',
'dod_5220_multipass_wipe', 'ed25519_key_destruction',
'credential_incineration', 'merkle_tree_verification',
'hash_chain_validation', 'capsule_lifecycle_verification',
];
let prev = sha512hex('');
const ts = proof.destroyed_at;
proof.chain.forEach((s, i) => {
const material = Buffer.concat([
Buffer.from(prev), Buffer.from([0]),
Buffer.from(s.subsystem), Buffer.from([0]),
Buffer.from('destroy'), Buffer.from([0]),
Buffer.from(METHODS[i]), Buffer.from([0]),
Buffer.from(ts),
]);
let recomputed = sha512hex(material);
if (i === 7) { // step 8 is amended when the proof carries receipt or parent roots
const roots = ['record_receipts_merkle_root', 'parent_proofs_merkle_root']
.filter((k) => proof[k]).map((k) => proof[k].replace('sha512:', ''));
if (roots.length) {
recomputed = sha512hex(Buffer.concat([
Buffer.from(recomputed), ...roots.flatMap((r) => [Buffer.from([0]), Buffer.from(r)]),
]));
}
}
if (s.chain_hash !== `sha512:${recomputed}`) throw new Error(`chain broken at step ${s.step}`);
prev = recomputed;
});
if (proof.final_hash !== proof.chain[7].chain_hash) throw new Error('final_hash mismatch');
// 2. Verify the Ed25519 signature. Only 1.0 signs a value the document
// stores (final_hash); 2.x signs a hash of the canonical view that the
// document does not store, so use verifyAuditProof() for 2.x.
if (proof.cdp_version === '1.0') {
const pubKey = Buffer.from(proof.attestation.public_key.replace('base64:', ''), 'base64');
const sig = Buffer.from(proof.attestation.signature.replace('base64:', ''), 'base64');
const msg = Buffer.from(proof.final_hash.replace('sha512:', ''));
if (!nacl.sign.detached.verify(msg, sig, pubKey)) throw new Error('signature invalid');
console.log('chain intact, signature valid');
} else {
console.log('chain intact; for the 2.x signature use verifyAuditProof()');
}
Requires: npm install tweetnacl. For a 1.0 proof this checks the signature against the key inside the proof, which shows the chain terminus is intact (a 1.0 signature does not cover capsule_id) but not who signed. For 2.x it shows only that the chain recomputes; use verifyAuditProof() from @nanorix/sdk for the signature, and pass it a trustChain to anchor the key. A proof without destroyed_at (an early 1.0 proof) needs the SDK verifier, which recovers the timestamp from attestation.key_id.
# Python SDK: complete offline verification in one call
import json
from nanorix.verifier import TrustChain, VerifierPolicy, verify
with open("auditproof.json") as f:
proof = json.load(f)
print(verify(proof).status) # "not_anchored": signature valid against the key the proof carries; ok is False
# Supply a trust chain to get verified: the key list from
# https://verify.nanorix.io/.well-known/trust-chain.json, pinned by the fingerprint at
# https://verify.nanorix.io/.well-known/identity.txt (obtain both through a channel you trust)
with open("trust-chain.json", "rb") as f, open("identity.txt") as pin:
chain = TrustChain.from_key_list(f.read(), pin.read().strip())
result = verify(proof, VerifierPolicy(trust_chain=chain))
print(result.status, result.ok) # "verified" True only when the signing key resolved in the pinned list
# Reference verifier binary (offline; Apache-2.0, no account needed). Build it from the public
# repository: cargo install --git https://github.com/nanorix-io/nanorix-verify nanorix-verify
# The verifier never fetches the key list or the pin for you: obtain both through a
# channel you trust, and compare the fingerprint with one you got another way.
curl -fsSO https://verify.nanorix.io/.well-known/trust-chain.json
FP=$(curl -fsS https://verify.nanorix.io/.well-known/identity.txt)
nanorix-verify auditproof.json --trust-chain trust-chain.json --identity-fingerprint "$FP"
# exit 0, status verified (stage 8)
nanorix-verify auditproof.json
# exit 4, status not_anchored (stage 7): integrity only, not who signed
ok and exit code 0 mean status verified, and only that. A signature
that checks only against the key embedded in the proof is not_anchored
(exit 4): a proof signed with any freshly made key reaches the same result.
The valid field of the JSON verdict is true when the chain and the
signature hold under the key used, and says nothing on its own about who
signed: it is also true at stage 7 and for a chain with no signature
checked, so read status, never valid alone.
A proof from your own install, signed under your own authority, anchors
against the key list you sign for that authority, not this one.
A 1.0 proof never reaches exit 0: with a key list it exits 4, or 1 when the list refuses it.
Two subcommands of the binary are exceptions to the rule that exit 0
means verified: boundary verify and bundle verify check a boundary
attestation or a record bundle, not an AuditProof, and exit 0 when its
signature holds against the key the document itself carries, where a
proof exits 4. Their exit 0 is not verified, and their success line
says the key was not anchored.
What Verification Proves¶
| Check | What It Confirms |
|---|---|
| Chain recomputation | Each destruction step recomputes from the previous one — no steps were inserted, removed, reordered, or edited, and the timestamp is the one the chain was built with |
| Step count | All 8 destruction steps are present — none skipped |
| Final hash | The chain terminus matches the declared final_hash — the chain was not truncated |
| Ed25519 signature | The proof was signed by the private key corresponding to the embedded public key — the signed content has not changed since signing |
What Verification Does NOT Prove¶
Verification confirms the integrity of the AuditProof's signed content. It does not independently confirm that the physical destruction operations executed on the host. The verdict is "AuditProof VERIFIED" — not "DESTRUCTION VERIFIED."
For additional provenance assurance, you can check that the public key is one Nanorix has registered (hosted proofs are signed by the authority key nrx-kms-v1, so this resolves to the same record for every proof until the key rotates):
# Level 2: Provenance check (optional, requires network)
curl https://api.nanorix.io/v1/keys/{key_id}
A successful lookup confirms this public key is registered in Nanorix's key database. It does not, by itself, rule out misuse of a registered key — it anchors the proof's key to Nanorix's records.
Verification Levels¶
| Level | Method | Network Required | What It Proves |
|---|---|---|---|
| Level 1 | Offline (chain recomputation + signature) | No | Proof integrity — no signed byte has changed since it was signed (fields outside the signed view, such as metadata, are not checked) |
| Level 2 | Key provenance (GET /v1/keys/:id) |
Yes | Proof provenance — the signing key is registered with Nanorix |
| Level 3 | Trust-chain anchoring (nanorix-verify proof.json --trust-chain trust-chain.json with the identity fingerprint pinned) |
No, once the manifest is obtained out of band | Authenticity — the proof's authority_id / signing_key_version resolve to a key in the signed manifest; a signer the manifest does not list is refused (signing_key_version_unknown); to verify a proof from another authority, supply the manifest that authority publishes |