#crypto #tls #pki #hash #ct

no-std ct-merkle

An implementation of the append-only log described in the Certificate Transparency specification (RFC 6962)

1 unstable release

Uses new Rust 2021

0.1.0 May 31, 2022

#739 in Cryptography

MIT/Apache

41KB
722 lines

CT Merkle

Crate Docs CI

This is an implementation of the append-only log described in the Certificate Transparency specification (RFC 6962). The log is a Merkle tree, and its leaves are the items it contains.

The log has two important features:

  1. Inclusion proofs. You can construct a succinct proof that a particular item appears in a given tree.
  2. Consistency proofs. You can construct a succinct proof that one tree is a prefix of another tree, i.e., that tree #2 is the result of appending some number of items to the end of tree #1.

Crate Features

Default feature flags: none

Feature flag list:

  • serde - Implements serde::Serialize and serde::Deserialize for: CtMerkleTree, RootHash, InclusionProof, and ConsistencyProof
  • std - Implements std::error::Error for all the error types

License

Licensed under either of

at your option.

Warning

This code has not been audited in any sense of the word. Use it at your own peril.

Dependencies

~270–475KB
~12K SLoC