OpenTimestamps is a FOSS timestamping protocol that was created by Peter Todd to prove the existence of files by creating a Merkle branch from each file to the most recent block in the Bitcoin blockchain.
These notes assumes use of version 0.7.0 of
For more detailed notes, see OpenTimestamps notes
Timestamp a file
Simply timestamp a file.
$ ots s foo.txt
Timestamp a file and upgrade after 12 hours.
$ file="foo.txt"; ots s "$file" && sleep $((12*3600)) && ots u "$file";
Verify a timestamp
Verify a timestamp (requires a local Bitcoin Core node; see JSON RPC notes below if the node is on another machine).
$ ots v foo.txt.ots