pub struct CompoundInclusionProof {
pub bank_hash_proof: BankHashProof,
/* private fields */
}Expand description
A proof that a specific Solana block contains blobs, and that there are no other blobs in the block.
This proof consists of four parts:
- A list of blob proofs that prove that the blobs uploaded to the [
blober] program hash to the given blob digest. - A blober account state proof that proves that the [
blober] was invoked exactly as many times as there are blobs. - An accounts delta hash proof that proves that
the accounts_delta_hash does include the [
blober] account. - A bank hash proof that proves that the root hash of the accounts_delta_hash is the same as the root in the bank hash.
The proof can then be verified by supplying the blockhash of the block in which the [blober] was
invoked, as well as the blobs of data which were published.
Fields§
§bank_hash_proof: BankHashProofImplementations§
Source§impl CompoundInclusionProof
impl CompoundInclusionProof
Sourcepub fn new(
slot: Slot,
blob_proofs: Vec<BlobProof>,
blober_account_state_proof: BloberAccountStateProof,
blober_inclusion_proof: InclusionProof,
bank_hash_proof: BankHashProof,
) -> Self
pub fn new( slot: Slot, blob_proofs: Vec<BlobProof>, blober_account_state_proof: BloberAccountStateProof, blober_inclusion_proof: InclusionProof, bank_hash_proof: BankHashProof, ) -> Self
Creates an inclusion proof.
Trait Implementations§
Source§impl Clone for CompoundInclusionProof
impl Clone for CompoundInclusionProof
Source§fn clone(&self) -> CompoundInclusionProof
fn clone(&self) -> CompoundInclusionProof
Returns a duplicate of the value. Read more
1.0.0 · 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 CompoundInclusionProof
impl Debug for CompoundInclusionProof
Source§impl<'de> Deserialize<'de> for CompoundInclusionProof
impl<'de> Deserialize<'de> for CompoundInclusionProof
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
Source§impl PartialEq for CompoundInclusionProof
impl PartialEq for CompoundInclusionProof
Source§impl Serialize for CompoundInclusionProof
impl Serialize for CompoundInclusionProof
impl Eq for CompoundInclusionProof
impl StructuralPartialEq for CompoundInclusionProof
Auto Trait Implementations§
impl Freeze for CompoundInclusionProof
impl RefUnwindSafe for CompoundInclusionProof
impl Send for CompoundInclusionProof
impl Sync for CompoundInclusionProof
impl Unpin for CompoundInclusionProof
impl UnwindSafe for CompoundInclusionProof
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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