pub struct StateRootAuxInfo {
    pub snapshot_epoch_id: EpochId,
    pub intermediate_epoch_id: EpochId,
    pub maybe_intermediate_mpt_key_padding: Option<DeltaMptKeyPadding>,
    pub delta_mpt_key_padding: DeltaMptKeyPadding,
    pub state_root_hash: MerkleHash,
}Expand description
Auxiliary information for deferred state root, which is necessary for state trees look-up. The StateRootAuxInfo should be provided by consensus layer for state storage access.
Fields§
§snapshot_epoch_id: EpochId§intermediate_epoch_id: EpochId§maybe_intermediate_mpt_key_padding: Option<DeltaMptKeyPadding>§delta_mpt_key_padding: DeltaMptKeyPadding§state_root_hash: MerkleHashImplementations§
Source§impl StateRootAuxInfo
 
impl StateRootAuxInfo
pub fn genesis_state_root_aux_info(genesis_state_root: &MerkleHash) -> Self
Trait Implementations§
Source§impl Clone for StateRootAuxInfo
 
impl Clone for StateRootAuxInfo
Source§fn clone(&self) -> StateRootAuxInfo
 
fn clone(&self) -> StateRootAuxInfo
Returns a copy 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 StateRootAuxInfo
 
impl Debug for StateRootAuxInfo
Source§impl Decodable for StateRootAuxInfo
 
impl Decodable for StateRootAuxInfo
Source§impl<'de> Deserialize<'de> for StateRootAuxInfo
 
impl<'de> Deserialize<'de> for StateRootAuxInfo
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 Encodable for StateRootAuxInfo
 
impl Encodable for StateRootAuxInfo
Source§impl PartialEq for StateRootAuxInfo
 
impl PartialEq for StateRootAuxInfo
Source§impl Serialize for StateRootAuxInfo
 
impl Serialize for StateRootAuxInfo
impl Eq for StateRootAuxInfo
impl StructuralPartialEq for StateRootAuxInfo
Auto Trait Implementations§
impl Freeze for StateRootAuxInfo
impl RefUnwindSafe for StateRootAuxInfo
impl Send for StateRootAuxInfo
impl Sync for StateRootAuxInfo
impl Unpin for StateRootAuxInfo
impl UnwindSafe for StateRootAuxInfo
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,
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.