pub struct ClaimedLeaf {
pub alg_id: u64,
pub leaf_proof: LeafProof,
}Expand description
One claimed leaf in a snapshot proof: a spine::LeafProof paired with the
algorithm whose member root it verifies against.
The leaf proof’s own trusted positional parameters
(index, tree_size, arity) pin the topology; alg_id selects which
of the snapshot’s member roots is the authenticated root the proof reconstructs
to. This is the base-case unit the aggregate proof composes.
Fields§
§alg_id: u64The algorithm whose member root this leaf proof verifies against.
leaf_proof: LeafProofThe base-case leaf proof, verified against that algorithm’s member root.
Implementations§
Source§impl ClaimedLeaf
impl ClaimedLeaf
Sourcepub fn new(alg_id: u64, leaf_proof: LeafProof) -> ClaimedLeaf
pub fn new(alg_id: u64, leaf_proof: LeafProof) -> ClaimedLeaf
Pair a leaf proof with the algorithm whose member root it verifies against.
Trait Implementations§
Source§impl Clone for ClaimedLeaf
impl Clone for ClaimedLeaf
Source§fn clone(&self) -> ClaimedLeaf
fn clone(&self) -> ClaimedLeaf
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 ClaimedLeaf
impl Debug for ClaimedLeaf
impl Eq for ClaimedLeaf
Source§impl PartialEq for ClaimedLeaf
impl PartialEq for ClaimedLeaf
Source§fn eq(&self, other: &ClaimedLeaf) -> bool
fn eq(&self, other: &ClaimedLeaf) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClaimedLeaf
Auto Trait Implementations§
impl Freeze for ClaimedLeaf
impl RefUnwindSafe for ClaimedLeaf
impl Send for ClaimedLeaf
impl Sync for ClaimedLeaf
impl Unpin for ClaimedLeaf
impl UnsafeUnpin for ClaimedLeaf
impl UnwindSafe for ClaimedLeaf
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