#ots #bitcoin #timestamping #crypto

bin+lib opentimestamps

Rust library for parsing, verifying, and serializing OpenTimestamps timestamps

2 unstable releases

Uses old Rust 2015

0.2.0 Apr 12, 2023
0.1.2 Apr 17, 2017

#3 in #timestamping

Download history 88/week @ 2024-03-11 20/week @ 2024-03-18 58/week @ 2024-03-25 123/week @ 2024-04-01 50/week @ 2024-04-08 21/week @ 2024-04-15 19/week @ 2024-04-22 50/week @ 2024-04-29 79/week @ 2024-05-06 30/week @ 2024-05-13 59/week @ 2024-05-20 72/week @ 2024-05-27 71/week @ 2024-06-03 25/week @ 2024-06-10 52/week @ 2024-06-17 31/week @ 2024-06-24

182 downloads per month
Used in 3 crates (via nostr-ots)

MIT/Apache

43KB
741 lines

OpenTimestamps Library for Rust

OpenTimestamps is a service which provides provable timestamping using the Bitcoin blockchain

This library is in early stages. It currently supports parsing and serialization of .ots files, and can play them forward to compute the eventual hashes that actually wind up in the chain.

There is lots of remaining work to do as far as documentation and examples.

A timestamp viewer using this library is available at wpsoftware.net. Its source code is here.

In src/bin/ots_info.rs there is a simple application that reads a .ots file and dumps its contents to stdout, as a basic usage example. It really just calls fmt::Display::fmt on the DetachedTimestampFile structure; in the absense of any other documentation, reading that function is a good starting point for seeing how the data structures work. You can execute it with cargo run -- <filename.ots>

Documentation

Dependencies

~3–4.5MB
~76K SLoC