Struct account_state::backend::Proving[][src]

pub struct Proving<H> { /* fields omitted */ }

Proving state backend. This keeps track of all state values loaded during usage of this backend. The proof-of-execution can be extracted with extract_proof.

This doesn’t cache anything or rely on the canonical state caches.

Implementations

impl<H: AsHashDB<KeccakHasher, DBValue>> Proving<H>[src]

pub fn new(base: H) -> Self[src]

Create a new Proving over a base database. This will store all values ever fetched from that base.

pub fn extract_proof(self) -> Vec<DBValue>[src]

Consume the backend, extracting the gathered proof in lexicographical order by value.

Trait Implementations

impl<AH: AsHashDB<KeccakHasher, DBValue> + Send + Sync> AsHashDB<KeccakHasher, Vec<u8, Global>> for Proving<AH>[src]

impl<H: AsHashDB<KeccakHasher, DBValue> + Send + Sync> Backend for Proving<H>[src]

impl<H: AsHashDB<KeccakHasher, DBValue> + Clone> Clone for Proving<H>[src]

impl<H: AsHashDB<KeccakHasher, DBValue> + Send + Sync> HashDB<KeccakHasher, Vec<u8, Global>> for Proving<H>[src]

Auto Trait Implementations

impl<H> !RefUnwindSafe for Proving<H>

impl<H> Send for Proving<H> where
    H: Send

impl<H> Sync for Proving<H> where
    H: Sync

impl<H> Unpin for Proving<H> where
    H: Unpin

impl<H> UnwindSafe for Proving<H> where
    H: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,