Documentation Report and proof record
Report and proof record
The report is what a person reads. The proof record is what a contract reads. Hashes tie both to the evidence, so a record on chain can be traced back to the files it came from.
What the build writes#
| File | Content |
|---|---|
report.html | The report as one page to read or print, in the order the standard sets, with the hashes and a signature block |
report.json | The report body and its hash. The hash is over this body, not over the page |
evidence-index.json | Every evidence file with its size and SHA-256, and the bundle hash |
match-report.json | Counts, every exception, every matched unit with model, firmware and driver version |
proof-record.json | The proof record only. Chain-neutral |
onchain-encoding.json | The record digest and the values for the registry |
The report#
In the order of section 10 of the standard:
- Cover: facility, loan reference, engagement type, inspection date, inspector. The facility and the loan are named by pseudonym.
- Scope, and anything that could not be done and why.
- Result, with the count table: scheduled, system-read matched, physically sighted, exceptions.
- Findings register.
- Evidence index.
- Statement of independence.
- Hashes of the report and of the evidence bundle.
The proof record#
All values in this example are invented.
{
"facilityId": "fac-7c1e",
"scheduleHash": "0x5f2a...e91b",
"engagementType": "F",
"inspectionDate": "2026-12-10",
"counts": { "scheduled": 1024, "matched": 1024, "exceptions": 0 },
"result": "PASS",
"validUntil": "2027-03-10",
"reportHash": "0x9ab4...03cd",
"inspectorSignature": null
}
The record holds no field that belongs to one chain, so it stays portable. The kit leaves the signature empty and prints the digest for the inspector to sign elsewhere. It never creates, reads or stores a key.
How the hashes fit together#
All hashes are SHA-256. Canonical JSON means keys sorted at every level, no whitespace, UTF-8.
| Hash | Over what |
|---|---|
| Capture hash | Each capture file, byte for byte as it was captured |
| Schedule hash | Canonical JSON of the collateral schedule |
| Bundle hash | Canonical JSON of the list of evidence files with their hashes |
| Report hash | Canonical JSON of the report body, which contains the file list and the bundle hash |
| Record digest | Canonical JSON of the proof record without its signature. The record contains the report hash |
So the record digest fixes the report, and the report fixes every evidence file. Change one byte of a capture and inspect verify reports it.
Values on chain#
| Field | Type | How it is made |
|---|---|---|
facilityKey | bytes32 | SHA-256 of the facility ID |
engagementType | uint8 | F = 0, Q = 1, E = 2 |
result | uint8 | PASS = 1, PASS_WITH_EXCEPTIONS = 2, FAIL = 3. Zero means no record |
inspectionDate | uint64 | 00:00:00 UTC of that day, in unix seconds |
validUntil | uint64 | 23:59:59 UTC of that day |
scheduled, matched, exceptions | uint32 | The three counts |
scheduleHash, reportHash, recordDigest | bytes32 | As above |
Validity#
A record past its valid-until date is treated as FAIL. Nobody has to send anything for that to happen: the registry compares the date with the block time whenever it is read. The numbers of days are proposals in the standard, and can be changed in a configuration file.