pub struct ProofCheck(_);
Expand description
A raw backend used to check proofs of execution.
This doesn’t delete anything since execution proofs won’t have mangled keys and we want to avoid collisions.
Implementations
sourceimpl ProofCheck
impl ProofCheck
Trait Implementations
sourceimpl AsHashDB<KeccakHasher, ElasticArray128<u8>> for ProofCheck
impl AsHashDB<KeccakHasher, ElasticArray128<u8>> for ProofCheck
sourcefn as_hash_db(&self) -> &dyn HashDB<KeccakHasher, DBValue>
fn as_hash_db(&self) -> &dyn HashDB<KeccakHasher, DBValue>
Perform upcast to HashDB for anything that derives from HashDB.
sourcefn as_hash_db_mut(&mut self) -> &mut dyn HashDB<KeccakHasher, DBValue>
fn as_hash_db_mut(&mut self) -> &mut dyn HashDB<KeccakHasher, DBValue>
Perform mutable upcast to HashDB for anything that derives from HashDB.
sourceimpl Backend for ProofCheck
impl Backend for ProofCheck
sourcefn as_hash_db(&self) -> &dyn HashDB<KeccakHasher, DBValue>
fn as_hash_db(&self) -> &dyn HashDB<KeccakHasher, DBValue>
Treat the backend as a read-only hashdb.
sourcefn as_hash_db_mut(&mut self) -> &mut dyn HashDB<KeccakHasher, DBValue>
fn as_hash_db_mut(&mut self) -> &mut dyn HashDB<KeccakHasher, DBValue>
Treat the backend as a writeable hashdb.
sourcefn add_to_account_cache(
&mut self,
_addr: Address,
_data: Option<Account>,
_modified: bool
)
fn add_to_account_cache(
&mut self,
_addr: Address,
_data: Option<Account>,
_modified: bool
)
t_nb 9.4 Add an account entry to the cache.
sourcefn cache_code(&self, _hash: H256, _code: Arc<Vec<u8>>)
fn cache_code(&self, _hash: H256, _code: Arc<Vec<u8>>)
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
sourcefn get_cached_account(&self, _addr: &Address) -> Option<Option<Account>>
fn get_cached_account(&self, _addr: &Address) -> Option<Option<Account>>
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
sourceimpl Clone for ProofCheck
impl Clone for ProofCheck
sourcefn clone(&self) -> ProofCheck
fn clone(&self) -> ProofCheck
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl HashDB<KeccakHasher, ElasticArray128<u8>> for ProofCheck
impl HashDB<KeccakHasher, ElasticArray128<u8>> for ProofCheck
sourcefn get(&self, key: &H256) -> Option<DBValue>
fn get(&self, key: &H256) -> Option<DBValue>
Look up a given hash into the bytes that hash to it, returning None if the hash is not known. Read more
sourcefn insert(&mut self, value: &[u8]) -> H256
fn insert(&mut self, value: &[u8]) -> H256
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
sourceimpl KeyedHashDB for ProofCheck
impl KeyedHashDB for ProofCheck
sourceimpl PartialEq<ProofCheck> for ProofCheck
impl PartialEq<ProofCheck> for ProofCheck
sourcefn eq(&self, other: &ProofCheck) -> bool
fn eq(&self, other: &ProofCheck) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProofCheck) -> bool
fn ne(&self, other: &ProofCheck) -> bool
This method tests for !=
.
impl StructuralPartialEq for ProofCheck
Auto Trait Implementations
impl RefUnwindSafe for ProofCheck
impl Send for ProofCheck
impl Sync for ProofCheck
impl Unpin for ProofCheck
impl UnwindSafe for ProofCheck
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more