Practical guide

How to verify freight evidence JSON hashes with RFC 8785

Decide what you are proving before hashing. Hash the raw bytes to identify an exact file. If both systems need to hash the same JSON record despite serialization differences, agree a canonicalization scheme and publish the hash scope.

Name the digest scope

Do not confuse byte identity with JSON data identity.

RFC 8785 specifies a deterministic JSON representation for eligible inputs. Reject duplicate object keys before they can be discarded by a parser. Preserve string content and avoid silently rounding high-precision data. For exact source files such as a PDF or original API response, retain a separate raw-file digest instead of substituting a reserialized copy.

Worked example

Different spacing does not mean the underlying record changed.

In a synthetic evidence pack, two exporters write the same manifest values with different object key order and spacing. Their raw file digests may differ; after applying the same canonicalization, their canonical digests should match. Changing a shipment field should break that match. A match does not establish who created the record, when it existed, or whether the underlying shipment facts are true.

Acceptance checks

Verify the contract before distributing digests.

Related resources

Continue with a scoped check.

Review integration evidence tooling

Build an evidence export manifest

Software direction

Make transport data issues visible before the handoff.

Explore the public demo and compare proposed software plans. Paid access is not open yet.

Compare plans