pub struct ProofBundle<D, V>where
D: SupportedDigest,
V: VisitBytes,{ /* private fields */ }Expand description
A collection of inclusion proof info
Implementations§
Source§impl<D, V> ProofBundle<D, V>where
D: SupportedDigest,
V: VisitBytes,
impl<D, V> ProofBundle<D, V>where
D: SupportedDigest,
V: VisitBytes,
Sourcepub fn bundle(
consistency_proofs: Vec<ConsistencyProof<D, V>>,
inclusion_proofs: Vec<InclusionProof<D, V>>,
data: &impl LogData<D, V>,
) -> Result<Self, Error>
pub fn bundle( consistency_proofs: Vec<ConsistencyProof<D, V>>, inclusion_proofs: Vec<InclusionProof<D, V>>, data: &impl LogData<D, V>, ) -> Result<Self, Error>
Bundles inclusion proofs together
Sourcepub fn unbundle(
self,
) -> (SparseLogData<D, V>, Vec<ConsistencyProof<D, V>>, Vec<InclusionProof<D, V>>)
pub fn unbundle( self, ) -> (SparseLogData<D, V>, Vec<ConsistencyProof<D, V>>, Vec<InclusionProof<D, V>>)
Splits a bundle into its constituent inclusion proofs
Trait Implementations§
Source§impl<D, V> From<ProofBundle<D, V>> for LogProofBundlewhere
D: SupportedDigest,
V: VisitBytes,
impl<D, V> From<ProofBundle<D, V>> for LogProofBundlewhere
D: SupportedDigest,
V: VisitBytes,
Source§fn from(value: ProofBundle<D, V>) -> Self
fn from(value: ProofBundle<D, V>) -> Self
Converts to this type from the input type.
Source§impl<D, V> TryFrom<LogProofBundle> for ProofBundle<D, V>where
D: SupportedDigest,
V: VisitBytes,
impl<D, V> TryFrom<LogProofBundle> for ProofBundle<D, V>where
D: SupportedDigest,
V: VisitBytes,
Auto Trait Implementations§
impl<D, V> Freeze for ProofBundle<D, V>
impl<D, V> RefUnwindSafe for ProofBundle<D, V>where
D: RefUnwindSafe,
V: RefUnwindSafe,
<<D as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<D, V> Send for ProofBundle<D, V>
impl<D, V> Sync for ProofBundle<D, V>
impl<D, V> Unpin for ProofBundle<D, V>
impl<D, V> UnwindSafe for ProofBundle<D, V>where
D: UnwindSafe,
V: UnwindSafe,
<<D as OutputSizeUser>::OutputSize as ArrayLength<u8>>::ArrayType: 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