pub struct Tree<N, L> { /* private fields */ }Implementations§
Source§impl<N, L> Tree<N, L>
impl<N, L> Tree<N, L>
Sourcepub fn get_consistency_proof(
&self,
first: &TreeHead,
second: &TreeHead,
) -> Result<ConsistencyProof, ProofGenerationError>
pub fn get_consistency_proof( &self, first: &TreeHead, second: &TreeHead, ) -> Result<ConsistencyProof, ProofGenerationError>
This follows RFC 9162 2.1.4.1
Source§impl<N, L> Tree<N, L>
impl<N, L> Tree<N, L>
pub async fn get_consistency_proof_async( &self, first: &TreeHead, second: &TreeHead, ) -> Result<ConsistencyProof, ProofGenerationError>
Source§impl<N, L> Tree<N, L>
impl<N, L> Tree<N, L>
Sourcepub fn get_audit_proof(
&self,
head: &TreeHead,
index: u64,
) -> Result<AuditProof, ProofGenerationError>
pub fn get_audit_proof( &self, head: &TreeHead, index: u64, ) -> Result<AuditProof, ProofGenerationError>
This follows RFC 9162 2.1.3.1
Source§impl<N, L> Tree<N, L>
impl<N, L> Tree<N, L>
pub async fn get_audit_proof_async( &self, head: &TreeHead, index: u64, ) -> Result<AuditProof, ProofGenerationError>
Source§impl<N, L> Tree<N, L>
impl<N, L> Tree<N, L>
pub fn insert_entry(&self, entry: L::Value)
pub fn recompute_tree_head(&self) -> TreeHead
pub fn get_latest_tree_head(&self) -> Option<TreeHead>
Trait Implementations§
Auto Trait Implementations§
impl<N, L> Freeze for Tree<N, L>
impl<N, L> RefUnwindSafe for Tree<N, L>where
N: RefUnwindSafe,
L: RefUnwindSafe,
impl<N, L> Send for Tree<N, L>
impl<N, L> Sync for Tree<N, L>
impl<N, L> Unpin for Tree<N, L>
impl<N, L> UnsafeUnpin for Tree<N, L>where
N: UnsafeUnpin,
L: UnsafeUnpin,
impl<N, L> UnwindSafe for Tree<N, L>where
N: UnwindSafe,
L: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more