pub struct NonInclusionProof<'a> {
pub root: [u8; 32],
pub value: [u8; 32],
pub leaf_lower_range_value: [u8; 32],
pub leaf_higher_range_value: [u8; 32],
pub leaf_index: usize,
pub next_index: usize,
pub merkle_proof: BoundedVec<'a, [u8; 32]>,
}Expand description
We prove non-inclusion by:
- Showing that value is greater than leaf_lower_range_value and less than leaf_higher_range_value
- Showing that the leaf_hash H(leaf_lower_range_value, leaf_next_index, leaf_higher_value) is included in the root (Merkle tree)
Fields§
§root: [u8; 32]§value: [u8; 32]§leaf_lower_range_value: [u8; 32]§leaf_higher_range_value: [u8; 32]§leaf_index: usize§next_index: usize§merkle_proof: BoundedVec<'a, [u8; 32]>Auto Trait Implementations§
impl<'a> Freeze for NonInclusionProof<'a>
impl<'a> RefUnwindSafe for NonInclusionProof<'a>
impl<'a> Send for NonInclusionProof<'a>
impl<'a> Sync for NonInclusionProof<'a>
impl<'a> Unpin for NonInclusionProof<'a>
impl<'a> !UnwindSafe for NonInclusionProof<'a>
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