pub struct AuthenticatedMerkleAuthStruct {
pub auth_struct: Vec<Digest>,
pub indexed_leafs: Vec<(u64, Digest)>,
pub witness: AuthStructIntegrityProof,
}Expand description
An authentication structure that can be used to prove membership of a list of leaves in a Merkle tree, along with the indexed leaves in question, and the witness necessary to prove membership in a ZK program.
Fields§
§auth_struct: Vec<Digest>§indexed_leafs: Vec<(u64, Digest)>§witness: AuthStructIntegrityProofTrait Implementations§
Auto Trait Implementations§
impl Freeze for AuthenticatedMerkleAuthStruct
impl RefUnwindSafe for AuthenticatedMerkleAuthStruct
impl Send for AuthenticatedMerkleAuthStruct
impl Sync for AuthenticatedMerkleAuthStruct
impl Unpin for AuthenticatedMerkleAuthStruct
impl UnsafeUnpin for AuthenticatedMerkleAuthStruct
impl UnwindSafe for AuthenticatedMerkleAuthStruct
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