Innovation Blockchain

Documentation · Coston2 testnet prototype · invented data

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#

FileContent
report.htmlThe report as one page to read or print, in the order the standard sets, with the hashes and a signature block
report.jsonThe report body and its hash. The hash is over this body, not over the page
evidence-index.jsonEvery evidence file with its size and SHA-256, and the bundle hash
match-report.jsonCounts, every exception, every matched unit with model, firmware and driver version
proof-record.jsonThe proof record only. Chain-neutral
onchain-encoding.jsonThe record digest and the values for the registry

The report#

In the order of section 10 of the standard:

  1. Cover: facility, loan reference, engagement type, inspection date, inspector. The facility and the loan are named by pseudonym.
  2. Scope, and anything that could not be done and why.
  3. Result, with the count table: scheduled, system-read matched, physically sighted, exceptions.
  4. Findings register.
  5. Evidence index.
  6. Statement of independence.
  7. 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.

HashOver what
Capture hashEach capture file, byte for byte as it was captured
Schedule hashCanonical JSON of the collateral schedule
Bundle hashCanonical JSON of the list of evidence files with their hashes
Report hashCanonical JSON of the report body, which contains the file list and the bundle hash
Record digestCanonical 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#

FieldTypeHow it is made
facilityKeybytes32SHA-256 of the facility ID
engagementTypeuint8F = 0, Q = 1, E = 2
resultuint8PASS = 1, PASS_WITH_EXCEPTIONS = 2, FAIL = 3. Zero means no record
inspectionDateuint6400:00:00 UTC of that day, in unix seconds
validUntiluint6423:59:59 UTC of that day
scheduled, matched, exceptionsuint32The three counts
scheduleHash, reportHash, recordDigestbytes32As 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.