Integrity

How hashing makes a supply chain record verifiable — and what it still cannot prove

A jargon-free explanation of cryptographic hashing, why it makes a record tamper-evident rather than tamper-proof, and the difference between proving a record is unchanged and proving it is true.

ExportTrace team5 min readUpdated August 8, 2026
Printed QR-code posters layered on a red shopfront

Every traceability vendor eventually says the word "tamper-evident", and almost none of them explain what it means. The underlying idea is genuinely simple, and worth understanding before you buy anything — not least because it tells you exactly which claims a vendor can back and which ones they are stretching.

What a hash is

A cryptographic hash function takes any input — a word, a document, a whole batch record — and produces a fixed-length string of characters. Feed it a paragraph and you get 64 characters. Feed it an entire book and you still get 64 characters.

Three properties do all the work:

  • Deterministic — the same input always produces the same output, every time, on any machine.
  • Avalanche — change one character of the input and the output changes completely, not slightly. There is no partial resemblance to interpret.
  • One-way — you cannot reconstruct the input from the output, and you cannot practically find a different input that produces the same output.

Together these make a hash a fingerprint for data. Two records with the same hash are the same record. Two records with different hashes differ somewhere, even if you cannot see where.

How that applies to a batch record

When a batch is recorded, its contents — product, origin, quantity, dates, certifications, the milestones along its journey — are assembled into a single structured payload and hashed. The resulting string is stored alongside the record together with the moment it was computed.

Later, anyone can take the record as it stands, recompute the hash, and compare. Match means the record is byte-for-byte what was sealed. Mismatch means something changed, and it does not matter whether the change was a correction, an accident or an edit made directly in the database — the check is indifferent to intent, which is the entire point.

Three implementation details that decide whether it works

The concept is simple; the implementation is where it usually goes wrong. If you are evaluating a vendor, these are worth asking about, because each of them has silently broken real systems.

1. Everything written must be hashed

If a record has seventeen fields and only six of them go into the hash, then eleven fields can be altered without the check ever noticing. The expiry date, the certifications, the photographs — all replaceable, all with a hash that still verifies. This is the most common defect, and from the outside it is invisible: the green tick looks identical.

2. The payload must be built the same way twice

Verification means rebuilding the payload from the stored record and hashing it again. If the rebuild differs from the original by even a trailing character — a timestamp written with milliseconds and read back with microseconds, an empty list stored as null — the hashes will not match, and a perfectly untouched record will be reported as altered. A system that cries wolf is worse than no check at all, because people learn to ignore it.

3. Nested data must be handled properly

Records are not flat. A milestone carries coordinates; a batch carries a list of certifications. A hashing routine that only walks the top level of a structure will produce identical hashes for records whose nested values differ — meaning the exact fields most worth protecting are the ones left unprotected.

Integrity is not authenticity

This is the distinction to hold on to, and the reason to be sceptical of a good deal of marketing in this category.

Integrity means: this record has not changed since it was recorded. That is what a hash establishes, and it establishes it strongly.

Authenticity means: what this record says is true. That the harvest happened on that date, in that place, under that certificate. No hash can establish that, because a hash never saw the harvest. It only ever saw what someone typed.

ExportTrace is explicit about which of the two it offers. We assert that a record is unchanged since it was recorded. We do not assert that any certificate attached to it is genuine, because we do not issue or audit certificates.

What integrity is still worth

A weaker claim, honestly made, turns out to be worth a great deal — because the disputes that actually arise in export trade are disputes about records, not about mathematics.

  • A buyer receives a document and can confirm it matches what you published, rather than trusting a forwarded attachment.
  • An auditor asking what a record said in March gets an answer that does not depend on anyone's memory or on file timestamps.
  • A correction becomes visible as a correction rather than passing as the original — which protects the honest exporter more than anyone, because it means the record can be shown to be the one that was made at the time.
  • A dispute over a shipment starts from an agreed set of facts instead of two versions of a spreadsheet.

That last point is the commercial argument. Most export disputes are not fraud; they are two parties holding different copies of the truth. A record that both sides can independently check collapses that category of argument entirely.

What happens when a record legitimately changes

Records change for good reasons. A quantity is corrected, a certificate is renewed, a shipping date moves. A system that treats every edit as tampering is unusable in practice.

The correct behaviour is to re-seal: recompute the hash over the new content, record when the amendment happened, and change what the verification page says. A record that has been amended should read as amended, not as unchanged since publication. A buyer is entitled to know that the document they are looking at was revised, and when.

What a buyer sees when they scan the code, including the re-check they can run themselves.

See a verification page

Questions

Frequently asked

A function that turns any amount of data into a short fixed-length string. The same input always gives the same output; changing the input by a single character gives a completely different output; and you cannot work backwards from the output to the input. Those three properties are what make it useful as a fingerprint for a record.

No, and this is the distinction that matters most. A hash proves that a record has not changed since it was recorded. It says nothing about whether what you typed was true. If a record states a harvest date that never happened, the hash faithfully proves that the false record is unaltered. Integrity and authenticity are different claims, and only the first is something mathematics can supply.

Tamper-proof would mean the record cannot be changed. Nothing that lives in a database is tamper-proof — anyone with sufficient access can edit a row. Tamper-evident means a change cannot be hidden: the stored hash no longer matches the recomputed one, so the alteration announces itself. That is a weaker and far more honest claim.

Not for tamper evidence itself, which comes from the hash. A distributed ledger changes who you have to trust to hold the hash — it removes the operator from that position. That is a real property with real costs, and it is worth being clear which of the two you are being sold.

Reading about it is the slow way

Set up your first batch and hand your next buyer a link instead of an attachment.