Struct ethcore::state::backend::Proving [] [src]

pub struct Proving<H: AsHashDB> { /* 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.

Methods

impl<H: AsHashDB> Proving<H>
[src]

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

Important traits for Vec<u8>

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

Trait Implementations

impl<H: AsHashDB + Send + Sync> HashDB for Proving<H>
[src]

Get the keys in the database together with number of underlying references.

Look up a given hash into the bytes that hash to it, returning None if the hash is not known. Read more

Check for the existance of a hash-key.

Insert a datum item into the DB and return the datum's hash for a later lookup. Insertions are counted and the equivalent number of remove()s must be performed before the data is considered dead. Read more

Like insert() , except you provide the key and the data is all moved.

Remove a datum previously inserted. Insertions can be "owed" such that the same number of insert()s may happen without the data being eventually being inserted into the DB. It can be "owed" more than once. Read more

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

Treat the backend as a read-only hashdb.

Treat the backend as a writeable hashdb.

Add an account entry to the cache.

Add a global code cache entry. This doesn't need to worry about canonicality because it simply maps hashes to raw code and will always be correct in the absence of hash collisions. Read more

Get basic copy of the cached account. Not required to include storage. Returns 'None' if cache is disabled or if the account is not cached. Read more

Get value from a cached account. None is passed to the closure if the account entry cached is known not to exist. None is returned if the entry is not cached. Read more

Get cached code based on hash.

Note that an account with the given address is non-null.

Check whether an account is known to be empty. Returns true if known to be empty, false otherwise. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

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

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