Docs/How the hash root works
Hash roots and Merkle trees
Combine many records into one fixed-length fingerprint, cover the whole set with a single timestamp, and detect any change through that fingerprint.
ProveLog needs to verify not a screenshot, but a growing set of Agent records. A hash root lets the verifier check that set with one fixed-length value, while allowing a third-party timestamp to be obtained without exposing conversation text.
What a hash is
A hash is a computation that turns data of any length into a value of fixed length. You can think of that value as the data's fingerprint.
- The same data always produces the same hash.
- Change a single character and the resulting hash changes.
- Two different pieces of data are almost certain not to produce the same hash.
ProveLog uses SHA-256, which produces a 32-byte hash.
From records to a hash root
Hash each record, combine the hashes in pairs, and keep hashing level by level until one value remains. That final hash is the hash root, and the structure is called a Merkle tree.
- Change any record and every hash on its path to the root changes, including the hash root itself.
- Using a record and its path through the tree, the verifier can check whether it belongs to that hash root.
- The hash root is 32 bytes, no matter how many records it covers.
Select a record below to see how it affects the hash root, or simulate a change and watch the verification result.
- Hash of record 03
- Hash root
- Against the timestamped hash root
- Match
How ProveLog uses the hash root
- Chaining. Each record gets a hash, which is written into the next record. Change, delete, or reorder any record and the later hashes stop matching.
- Signing. Each record is signed with the key kept on your device.
- Covering the whole set. The record hashes are combined into one hash root. ProveLog sends only this root and the necessary claim metadata to the relay to obtain a third-party timestamp; plaintext conversations remain on your device.
Why the hash root is not the conversation
Hashing is one-way: conversation text cannot be reconstructed from a hash or hash root alone. Someone who already has identical content can compute the same hash and compare it. The verifier uses this property to recompute the evidence pack's hash root and check it against the signatures and timestamp.
What happens during verification
The verifier recomputes each record's hash, checks the hash chain and device-key signatures, recombines the hashes into the root, and verifies the timestamp. If everything matches, the records are the same as when they were signed. If anything differs, it reports the specific problem.
An evidence pack contains the full records, so the recipient can read their content. You decide whether to export it and who to share it with. You can try the browser verifier or read about the scope and limits of verification.
Technical details
ProveLog's Merkle tree follows RFC 6962: leaf records and combined nodes use different hash prefixes so one cannot pass for the other, and when a level has an odd number of nodes, the remaining node moves up unchanged. See the verification specification for the exact format and rules.