pub struct InclusionProof {
pub leaf_index: u64,
pub tree_size: u64,
pub leaf_data: String,
pub audit_path: Vec<String>,
}Expand description
A compact RFC 9162 inclusion proof (hex-encoded): the record at leaf_index in a tree
of tree_size leaves is committed by a TreeHead’s root. leaf_data is the record’s
chain hash (the Merkle leaf data — a verifier hashes it with the 0x00 leaf prefix);
audit_path is the sibling hashes bottom-up.
Fields§
§leaf_index: u64§tree_size: u64§leaf_data: String§audit_path: Vec<String>Trait Implementations§
Source§impl Clone for InclusionProof
impl Clone for InclusionProof
Source§fn clone(&self) -> InclusionProof
fn clone(&self) -> InclusionProof
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InclusionProof
impl Debug for InclusionProof
Source§impl<'de> Deserialize<'de> for InclusionProof
impl<'de> Deserialize<'de> for InclusionProof
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InclusionProof
impl RefUnwindSafe for InclusionProof
impl Send for InclusionProof
impl Sync for InclusionProof
impl Unpin for InclusionProof
impl UnsafeUnpin for InclusionProof
impl UnwindSafe for InclusionProof
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