pub struct DefaultProofer<H: Hasher> { /* private fields */ }Implementations§
Source§impl<H> DefaultProofer<H>where
H: Hasher,
impl<H> DefaultProofer<H>where
H: Hasher,
pub fn new(hasher: H, leaves: Vec<Node>) -> Self
pub fn verify_hash( &self, proof: &MerkleProof, hash: String, root_hash: &str, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<H> Freeze for DefaultProofer<H>where
H: Freeze,
impl<H> RefUnwindSafe for DefaultProofer<H>where
H: RefUnwindSafe,
impl<H> Send for DefaultProofer<H>
impl<H> Sync for DefaultProofer<H>
impl<H> Unpin for DefaultProofer<H>where
H: Unpin,
impl<H> UnwindSafe for DefaultProofer<H>where
H: 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> 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