Engineering6 min read

How a tamper-evident ledger works

Hash chaining in plain language: why an append-only log can prove what happened, and what it does not prove.

By TG Members Team

The chain, in three steps

  • Write the entry: action, member, reason, timestamp and any payload.
  • Hash the entry together with the previous entry's hash.
  • Store that hash with the entry and carry it forward to the next one.

The result is a sequence where each link depends on everything before it. A verifier walks the chain from a known starting point and recomputes each hash. One mismatch and the whole tail is suspect.

Why append-only beats editable

If an entry can be edited in place, the record is only as trustworthy as whoever can edit it. Timestamps do not fix that: a timestamp can be changed too. Hash chaining moves the cost of tampering from a quiet edit to a detectable break, which is the property an auditor actually needs.

questionanswer the chain gives
Was this entry changed?recompute the hash and compare
Was an entry removed?the chain breaks at the gap
Was one inserted?the following entry no longer matches
When did it happen?the stored UTC timestamp, plus the surrounding order

What it does not prove

A chain proves integrity, not correctness. It cannot tell you that removing a member was the right call; it can only tell you the record of that call was not altered afterwards. That is exactly the right division of labour: the policy decides, the ledger remembers.

Exports carry the proofs alongside the data, so a third party — a bank, a payment processor, a platform reviewing an appeal — can verify the bundle without taking your word for it.