pub struct InclusionProof {
pub leaf_index: usize,
pub leaf_count: usize,
pub path: Vec<InclusionStep>,
}Expand description
A proof that one frame commitment is a leaf of a signed merkle_root
(SPEC.md §6.5.3).
This is what makes a signed answer selectively disclosable. A host that served twelve frames can prove to an auditor that one specific frame was in the signed set — and prove the provider committed to it before knowing which one would be questioned — while disclosing nothing about the other eleven beyond their hashes.
Fields§
§leaf_index: usizeThe leaf’s index in canonical order.
leaf_count: usizeHow many leaves the tree held. Part of the proof because a root alone does not pin the tree’s size, and a verifier that ignores it can be shown a proof from a differently-shaped tree.
path: Vec<InclusionStep>Sibling hashes from the leaf upward.
Trait Implementations§
Source§impl Clone for InclusionProof
impl Clone for InclusionProof
Source§fn clone(&self) -> InclusionProof
fn clone(&self) -> InclusionProof
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 InclusionProof
impl Debug for InclusionProof
Source§impl<'de> Deserialize<'de> for InclusionProof
impl<'de> Deserialize<'de> for InclusionProof
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InclusionProof
Source§impl PartialEq for InclusionProof
impl PartialEq for InclusionProof
Source§impl Serialize for InclusionProof
impl Serialize for InclusionProof
impl StructuralPartialEq for InclusionProof
Auto Trait Implementations§
impl Freeze for InclusionProof
impl RefUnwindSafe for InclusionProof
impl Send for InclusionProof
impl Sync for InclusionProof
impl Unpin for InclusionProof
impl UnsafeUnpin for InclusionProof
impl UnwindSafe for InclusionProof
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