Struct merkle::Proof
[−]
[src]
pub struct Proof<D, T> {
pub digest: D,
pub root_hash: Vec<u8>,
pub block: ProofBlock,
pub value: T,
}An inclusion proof represent the fact that value is a member of a MerkleTree
with root hash root_hash, and hash function digest.
A proof is a linked-list of ProofBlocks.
TODO: Represent a proof as a vector of ProofBlock instead of a linked-list?
Fields
digest: D
root_hash: Vec<u8>
block: ProofBlock
value: T