Skip to content

Commit

Permalink
Update documentation for MerkleTree Config (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagician committed Nov 20, 2023
1 parent 54b3ac2 commit 955b333
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/merkle_tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@ impl<T: CanonicalSerialize> DigestConverter<T, [u8]> for ByteDigestConverter<T>
}
}

/// Merkle tree have three types of hashes.
/// Merkle tree has two types of hashes.
/// * `LeafHash`: Convert leaf to leaf digest
/// * `TwoLeavesToOneHash`: Convert two leaf digests to one inner digest. This one can be a wrapped
/// version `TwoHashesToOneHash`, which first converts leaf digest to inner digest.
/// * `TwoHashesToOneHash`: Compress two inner digests to one inner digest
/// * `TwoToOneHash`: Compress two inner digests to one inner digest
pub trait Config {
type Leaf: ?Sized; // merkle tree does not store the leaf
// leaf layer
Expand Down

0 comments on commit 955b333

Please sign in to comment.