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.

The app's integrity page: chain intact, list of entries with timestamp checkpoints
The integrity page in the app

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:

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.

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.

Try it on your next trip.

The tamper-evident logbook is part of the free version.

Download on the App Store Get it on Google Play