Struct akd::MembershipProof
source · pub struct MembershipProof {
pub label: NodeLabel,
pub hash_val: [u8; 32],
pub layer_proofs: Vec<LayerProof, Global>,
}
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: [u8; 32]
The hash of the value
layer_proofs: Vec<LayerProof, Global>
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<'de> Deserialize<'de> for MembershipProof
impl<'de> Deserialize<'de> for MembershipProof
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<MembershipProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<MembershipProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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<MembershipProof> for MembershipProof
impl PartialEq<MembershipProof> for MembershipProof
source§fn eq(&self, other: &MembershipProof) -> bool
fn eq(&self, other: &MembershipProof) -> bool
source§impl Serialize for MembershipProof
impl Serialize for MembershipProof
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 StructuralEq for MembershipProof
impl StructuralPartialEq for MembershipProof
Auto Trait Implementations§
impl RefUnwindSafe for MembershipProof
impl Send for MembershipProof
impl Sync for MembershipProof
impl Unpin for MembershipProof
impl UnwindSafe for MembershipProof
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.