Tamper-evident logbook
How a digital logbook can prove it is genuine
A paper logbook can be rewritten. So can an ordinary app database. Sailing Trip Manager makes later changes visible, using two methods anyone can check independently of the app.
1. The chain: every entry is tied to the one before
Every change to the logbook – a new entry, a correction, a deletion – is recorded as an event of its own. For each event the app computes a fingerprint (SHA-256) that also includes the fingerprint of the previous event. If someone later changes a single character in an old entry, its fingerprint no longer matches – and neither does any after it.
Corrections are explicitly allowed. They just do not overwrite anything: the original entry and the correction both stay in the chain, each with its time. The chain does not prove that nothing ever changed; it proves that nothing changed secretly.
2. The timestamp: an independent authority confirms the state
A chain on its own could be recomputed from scratch. So at regular intervals the app sends the fingerprint of the latest event to an independent timestamp authority following RFC 3161 (currently FreeTSA). The authority signs: "this value existed at this moment".
Only the fingerprint is sent. No logbook content can be derived from it – the timestamp authority learns nothing about your trip.

3. Check it yourself
On the app's integrity page (Manage Logbook → Integrity), Export Forensic Evidence (ZIP) creates a file with everything needed for a check – without the app:
events.json– the complete event log with all fingerprintshash_chain.json– the per-entry view including checkpointscheckpoints/checkpoint_N.tsr– the signed timestampsVERIFY.md– the exact rule for computing the fingerprints
A timestamp can be checked with OpenSSL. The stamped value is listed as entryHash for each checkpoint in hash_chain.json:
curl -o cacert.pem https://freetsa.org/files/cacert.pem
openssl ts -verify -in checkpoints/checkpoint_1.tsr \
-digest <entryHash> \
-CAfile cacert.pem
If OpenSSL answers Verification: OK, the logbook was in exactly this state at the time named in the token. The chain itself can be recomputed in a few lines of any programming language; the rule is in the export's VERIFY.md.
4. What it cannot do
To be clear: it proves the log is unaltered, not that it is true.
- It does not prove that a position or a value is right – only that the entry has not changed since the timestamp.
- It says nothing about entries before the first timestamp.
- Between two timestamps, several entries could in theory have been created and stamped together. The more often it stamps, the smaller that window.
- It shows that something was logged, not who logged it.
For what usually matters – that a logbook was not tidied up after the trip to add sea miles or night passages – that is exactly the right claim.
For examiners and clubs: if you want to check an integrity export and have questions, write to sailingtripmanager@gmail.com.
