Struct akd::MembershipProof
source · pub struct MembershipProof {
pub label: NodeLabel,
pub hash_val: AzksValue,
pub sibling_proofs: Vec<SiblingProof>,
}
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: AzksValue
The hash of the value
sibling_proofs: Vec<SiblingProof>
The parents of the node in question
Trait Implementations§
source§impl Clone for MembershipProof
impl Clone for MembershipProof
source§fn clone(&self) -> MembershipProof
fn clone(&self) -> MembershipProof
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MembershipProof
impl Debug for MembershipProof
source§impl From<&MembershipProof> for MembershipProof
impl From<&MembershipProof> for MembershipProof
source§fn from(input: &MembershipProof) -> MembershipProof
fn from(input: &MembershipProof) -> MembershipProof
Converts to this type from the input type.
source§impl PartialEq for MembershipProof
impl PartialEq for MembershipProof
source§fn eq(&self, other: &MembershipProof) -> bool
fn eq(&self, other: &MembershipProof) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&MembershipProof> for MembershipProof
impl TryFrom<&MembershipProof> for MembershipProof
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
input: &MembershipProof
) -> Result<MembershipProof, <MembershipProof as TryFrom<&MembershipProof>>::Error>
fn try_from( input: &MembershipProof ) -> Result<MembershipProof, <MembershipProof as TryFrom<&MembershipProof>>::Error>
Performs the conversion.
impl Eq for MembershipProof
impl StructuralPartialEq for MembershipProof
Auto Trait Implementations§
impl Freeze for MembershipProof
impl RefUnwindSafe for MembershipProof
impl Send for MembershipProof
impl Sync for MembershipProof
impl Unpin for MembershipProof
impl UnwindSafe for MembershipProof
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more