#certificate-transparency #ct #hash #pki #tls #crypto #merkle-tree

no-std ct-merkle

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

1 unstable release

0.1.0 May 31, 2022

#2083 in Cryptography

Download history 180/week @ 2024-07-20 190/week @ 2024-07-27 54/week @ 2024-08-03 86/week @ 2024-08-10 362/week @ 2024-08-17 335/week @ 2024-08-24 390/week @ 2024-08-31 389/week @ 2024-09-07 262/week @ 2024-09-14 206/week @ 2024-09-21 30/week @ 2024-09-28 23/week @ 2024-10-05 68/week @ 2024-10-12 70/week @ 2024-10-19 23/week @ 2024-10-26 26/week @ 2024-11-02

193 downloads per month

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

~300–540KB
~12K SLoC