Struct akd::proof_structs::MembershipProof [−][src]
pub struct MembershipProof<H: Hasher> {
pub label: NodeLabel,
pub hash_val: H::Digest,
pub parent_labels: Vec<NodeLabel>,
pub sibling_labels: Vec<[NodeLabel; 1]>,
pub sibling_hashes: Vec<[H::Digest; 1]>,
pub dirs: Vec<Direction>,
}
Expand description
Merkle proof of membership of a NodeLabel
with a particular hash value
in the tree at a given epoch.
Fields
label: NodeLabel
The node label
hash_val: H::Digest
The hash of the value
parent_labels: Vec<NodeLabel>
The parent node labels
sibling_labels: Vec<[NodeLabel; 1]>
The sibling labels
sibling_hashes: Vec<[H::Digest; 1]>
The node sibling hashes
dirs: Vec<Direction>
The directions
Trait Implementations
Auto Trait Implementations
impl<H> RefUnwindSafe for MembershipProof<H> where
<H as Hasher>::Digest: RefUnwindSafe,
impl<H> Send for MembershipProof<H>
impl<H> Sync for MembershipProof<H>
impl<H> Unpin for MembershipProof<H> where
<H as Hasher>::Digest: Unpin,
impl<H> UnwindSafe for MembershipProof<H> where
<H as Hasher>::Digest: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more