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

Methods

impl<D, T> Proof<D, T> where D: Digest + Clone, T: Into<Vec<u8>> + Clone
[src]