pub struct StorageProof<T, H, K = AddedRemovedKeys> { /* private fields */ }Expand description
Generates storage merkle proofs.
Implementations§
Source§impl<T, H> StorageProof<T, H>
impl<T, H> StorageProof<T, H>
Sourcepub fn new(t: T, h: H, address: Address) -> Self
pub fn new(t: T, h: H, address: Address) -> Self
Create a new StorageProof instance.
Sourcepub fn new_hashed(t: T, h: H, hashed_address: B256) -> Self
pub fn new_hashed(t: T, h: H, hashed_address: B256) -> Self
Create a new StorageProof instance with hashed address.
Source§impl<T, H, K> StorageProof<T, H, K>
impl<T, H, K> StorageProof<T, H, K>
Sourcepub fn with_prefix_set_mut(self, prefix_set: PrefixSetMut) -> Self
pub fn with_prefix_set_mut(self, prefix_set: PrefixSetMut) -> Self
Set the changed prefixes.
Sourcepub const fn with_branch_node_masks(self, branch_node_masks: bool) -> Self
pub const fn with_branch_node_masks(self, branch_node_masks: bool) -> Self
Set the flag indicating whether to include branch node masks in the proof.
Sourcepub fn with_added_removed_keys<K2>(
self,
added_removed_keys: Option<K2>,
) -> StorageProof<T, H, K2>
pub fn with_added_removed_keys<K2>( self, added_removed_keys: Option<K2>, ) -> StorageProof<T, H, K2>
Configures the retainer to retain proofs for certain nodes which would otherwise fall outside the target set, when those nodes might be required to calculate the state root when keys have been added or removed to the trie.
If None is given then retention of extra proofs is disabled.
Source§impl<T, H, K> StorageProof<T, H, K>
impl<T, H, K> StorageProof<T, H, K>
Sourcepub fn storage_proof(self, slot: B256) -> Result<StorageProof, StateProofError>
pub fn storage_proof(self, slot: B256) -> Result<StorageProof, StateProofError>
Generate an account proof from intermediate nodes.
Sourcepub fn storage_multiproof(
self,
targets: B256Set,
) -> Result<StorageMultiProof, StateProofError>
pub fn storage_multiproof( self, targets: B256Set, ) -> Result<StorageMultiProof, StateProofError>
Generate storage proof.
Trait Implementations§
Auto Trait Implementations§
impl<T, H, K> Freeze for StorageProof<T, H, K>
impl<T, H, K> RefUnwindSafe for StorageProof<T, H, K>
impl<T, H, K> Send for StorageProof<T, H, K>
impl<T, H, K> Sync for StorageProof<T, H, K>
impl<T, H, K> Unpin for StorageProof<T, H, K>
impl<T, H, K> UnsafeUnpin for StorageProof<T, H, K>
impl<T, H, K> UnwindSafe for StorageProof<T, H, K>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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 moreimpl<T> MaybeDebug for Twhere
T: Debug,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.