Documentation Check a record
Check a record yourself
What a lender can check alone, with the report folder and the engagement letter, and no key. Four steps with the real commands. The first three need no chain at all.
Status. No record has been signed with the owner's inspector key, and the owner has not deployed registry v2 on Coston2. So today these steps can be run on the invented sample job and on a local test chain only. Every command on this page was run that way on 23 November 2026, with a local chain's address in place of the Coston2 endpoint. Nothing here is legal or financial advice.
What you need#
| Item | Where it comes from |
|---|---|
| The report folder | From the inspector. It holds the evidence files, result/report.html, result/proof-record.json and the other files of the result |
| The inspector's key id | From the engagement letter. An address: 0x and 40 hex characters. Do not take it from the report, a website or a chain alone |
| Node 22 or later | For step 1 |
Foundry's cast | For steps 1, 3 and 4. It needs no key for any of them |
jq, xxd and shasum | For step 2 as written here |
| The inspector kit | For step 1. It is in the project's private repository, so today a lender would have to be given it |
What the four steps establish#
| Step | Establishes | Chain needed | Manual today |
|---|---|---|---|
| 1. Check the folder | Every evidence file still has its hash. Every output file regenerates byte for byte from the evidence. The digest recomputes. The signature was made by the key you name | No | One command |
| 2. Recompute the digest | The 32-byte digest follows from the record's own fields, by a method you run yourself | No | Yes, by hand in a shell |
| 3. Check the signature | The key in your engagement letter signed that digest | No | Yes, one cast command |
| 4. Read the registry | The registry holds exactly those fields under that key, the key is not revoked, and the record is fresh | Yes, read only | Yes, cast calls. There is no registry v2 of the owner's to read yet |
A signature shows who issued the record and that it was not changed. It does not show that the facts are true. None of these steps checks the inspection itself.
Step 1. Check the folder against its evidence#
cd prototype/collector
node src/inspect.mjs verify <job-folder> --require-signature --key-id <key id from the engagement letter>
It prints ok or DIFFERENT for each item and ends with two lines. It needs no key and contacts no host.
What it checks:
- Every evidence file (the schedule, the findings, each capture) still has the hash in the evidence index, and no file was added or removed.
- Every file in
result/regenerates byte for byte from the evidence:report.html,report.json,proof-record.json,match-report.json,onchain-encoding.jsonandevidence-index.json. - The record digest recomputes from the fields of
proof-record.json: 480 bytes, SHA-256. - Each signature is well formed, and
cast wallet verifyconfirms the key it names signed that digest. - With
--key-id, the signing key is the key you gave.
How to read the last lines:
| Output | Meaning |
|---|---|
VERIFIED: the result folder follows from the evidence files. | About the files only. It says nothing about who signed |
Signature: VERIFIED. Signed by <address>, the key given with --key-id. | The key you named signed the digest |
signed by <address>: compare this with the key in your engagement letter | You gave no --key-id. The kit cannot know which key is the inspector's |
Signature: not signed. | The record carries no signature. With --require-signature this is NOT VERIFIED and exit code 1 |
NOT VERIFIED: <n> item(s) differ. | At least one item is DIFFERENT. Exit code 1 |
Always give --key-id and --require-signature. Without --key-id, a folder rebuilt and signed by anyone with any key still ends in VERIFIED for the files. A mistyped option such as --keyid is an error, so it cannot be read as "no key given".
Run on the invented sample job, which is not signed, the command above ends like this:
DIFFERENT a signature is required (--require-signature), and the record is not signed
NOT VERIFIED: 1 item(s) differ.
Signature: not signed.
Step 2. Recompute the digest yourself#
This repeats one part of step 1 without the kit's code, so you do not have to take the kit's word for the digest. The digest is SHA-256 over 15 words of 32 bytes each. The words are listed on Report and proof record.
result/onchain-encoding.json holds the record's values as numbers and hashes. Step 1 has already shown that this file regenerates from the evidence. Run this from the job folder:
O=result/onchain-encoding.json
q() { jq -r ".onChain.$1" "$O"; }
TAG=0x$(printf %s 'ibc-proof-record/1' | shasum -a 256 | cut -d' ' -f1)
PRE=$(cast abi-encode 'f(bytes32,bytes32,bytes32,bytes32,bytes32,uint64,uint64,uint64,uint32,uint32,uint32,uint32,uint16,uint8,uint8)' \
$TAG $(q facilityKey) $(q inspectorKey) $(q scheduleHash) $(q reportHash) \
$(q inspectionDate) $(q issuedAt) $(q validUntil) \
$(q scheduled) $(q matched) $(q sighted) $(q exceptions) \
$(q procedures) $(q engagementType) $(q result))
echo "$PRE" | cut -c3- | xxd -r -p | shasum -a 256
jq -r .recordDigest "$O"
The two last lines must show the same 64 hex characters. cast abi-encode here only pads each value to 32 bytes and joins them: 960 hex characters, 480 bytes. It uses no key and no chain.
You can also check single words against result/proof-record.json. The facility key is the SHA-256 of the facility id, and the inspector key is the SHA-256 of the inspector id:
printf %s 'fac-7c1e' | shasum -a 256
printf %s 'DEMO-not-a-real-inspector' | shasum -a 256
The dates are unix seconds: the inspection date at 00:00:00 UTC, the issue time to the second, and valid-until at 23:59:59 UTC of its date. The procedures word is a bit mask: a record that covers only 6.2 has the value 2.
Seven worked records with every word in hex are in prototype/spec/proof-record-vectors.json in the repository. All are invented.
Step 3. Check the signature yourself#
cast wallet verify --address <key id from the engagement letter> <record digest> <signature>
The digest is the one you computed in step 2. The signature is in result/proof-record.json under signatures, 0x and 130 hex characters. cast answers Validation succeeded. Address <address> signed this message. or fails.
You can try it now with public test values. This signature was made in a local test on 23 November 2026, over the digest of the invented sample job, by the first unlocked test account of a local development chain. That account's key is public knowledge. It is nobody's inspector key.
cast wallet verify --address 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 \
0x489aaf5a9edfd8fc3550f4e7ed54bfee24d73df947170aad057d1764a7d4bc3f \
0x49798c5326966c605d030a850107e0e4c766559bf4510a14dba7fcaf6ae446560018e64146aaec6ee54a1a067e9a4493b919b30afe1f8509109ecf1d050dfd2b1c
Two things cast wallet verify does not check, which the kit in step 1 and the registry do: that the last byte of the signature is 27 or 28, and that the value s is not above half the curve order.
Step 4. Read the registry#
Every call here only reads. None needs a key or pays anything.
Not available on Coston2 yet. The owner has not deployed registry v2, so there is no address to put in these calls today. They were run on 23 November 2026 against a registry on a local test chain. The registry shown on Network status is registry v1, which stores no inspector signature.
RPC=https://coston2-api.flare.network/ext/C/rpc
T='(bytes32,bytes32,bytes32,uint64,uint64,uint64,uint32,uint32,uint32,uint32,uint16,uint8,uint8)'
cast call --rpc-url $RPC <registry> "latest(bytes32,address)($T,bytes32,bool)" <facility key> <key id>
cast call --rpc-url $RPC <registry> 'status(bytes32,address)(uint8)' <facility key> <key id>
cast call --rpc-url $RPC <registry> 'isFresh(bytes32,address)(bool)' <facility key> <key id>
cast call --rpc-url $RPC <registry> 'isRevoked(address)(bool)' <key id>
cast call --rpc-url $RPC <registry> 'revokedAt(address)(uint64)' <key id>
cast block --rpc-url $RPC latest --field timestamp
| Call | What to compare |
|---|---|
latest | The 13 fields, in the order of the digest, then the digest, then whether a record exists. Each field must equal the value in onchain-encoding.json, and the digest must equal the one from step 2. The registry recomputes that digest from the fields it stores |
status | 1 PASS, 2 PASS_WITH_EXCEPTIONS, 3 FAIL. It reads 3 when there is no record, when the record is past its valid-until, or when the key is revoked |
isFresh | True when a record exists, is not past its valid-until, and the key is not revoked |
isRevoked, revokedAt | Whether the key was revoked, and the block time when |
| Block time | The clock the registry and the vault use. A record is stale once the block time is past its valid-until. The registry also refuses an issue time more than 15 minutes ahead of the block time, so a stored record cannot have been issued later than 15 minutes after the block that stored it. Coston2 is a testnet and can be reset |
If you are the lender of a vault, read its settings back too. Whoever deployed the vault chose them:
cast call --rpc-url $RPC <vault> 'registry()(address)'
cast call --rpc-url $RPC <vault> 'lender()(address)'
cast call --rpc-url $RPC <vault> 'inspector()(address)'
cast call --rpc-url $RPC <vault> 'scheduleHash()(bytes32)'
cast call --rpc-url $RPC <vault> 'requiredProcedures()(uint16)'
cast call --rpc-url $RPC <vault> 'maxRecordAge()(uint64)'
cast call --rpc-url $RPC <vault> 'canDraw(uint256)(bool,string)' <amount>
inspector must be the key id in your engagement letter, and scheduleHash the hash of the schedule you lent against.
Read the scope before the result#
Open result/proof-record.json and read two fields before you read the result.
procedures: which procedures of the standard, from 6.1 to 6.8, the record covers. A record made with today's tools lists"6.2"only: the system read of serial numbers.counts.sighted: how many units were physically sighted. Today it is 0.
A PASS with procedures of ["6.2"] and sighted of 0 rests on what the hosts printed, and on nothing else.
What these checks do not tell you#
- That the inspection was done well, or that the facts are true. The inspector is the sole author of every fact in the record.
- That the hosts answered truthfully. Whoever controls a host controls what it prints, and no manufacturer hardware evidence is collected.
- That the key is still in the inspector's hands. A stolen key signs a valid PASS until you repin or the key is revoked.
- That a job built from plain
nvidia-smifiles, with no inspection code and no capture time, is marked as such in the record. The report's scope says so; the record does not.
The whole list is on Who is trusted for what.