pub trait LogData<D, V>where
D: SupportedDigest,
V: VisitBytes,{
// Required methods
fn has_hash(&self, node: Node) -> bool;
fn hash_for(&self, node: Node) -> Option<Hash<D>>;
// Provided methods
fn prove_inclusion(
&self,
leaf: Node,
log_length: usize,
) -> InclusionProof<D, V> { ... }
fn prove_consistency(
&self,
old_length: usize,
new_length: usize,
) -> ConsistencyProof<D, V> { ... }
}Expand description
A collection of hash data
Required Methods§
Provided Methods§
Sourcefn prove_inclusion(&self, leaf: Node, log_length: usize) -> InclusionProof<D, V>
fn prove_inclusion(&self, leaf: Node, log_length: usize) -> InclusionProof<D, V>
Construct an inclusion proof for this log
Sourcefn prove_consistency(
&self,
old_length: usize,
new_length: usize,
) -> ConsistencyProof<D, V>
fn prove_consistency( &self, old_length: usize, new_length: usize, ) -> ConsistencyProof<D, V>
Construct a consistency proof for this log