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: MerkleHash
Implementations§
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§fn eq(&self, other: &StateRootAuxInfo) -> bool
fn eq(&self, other: &StateRootAuxInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StateRootAuxInfo
impl Serialize for StateRootAuxInfo
impl Eq for StateRootAuxInfo
impl StructuralPartialEq for StateRootAuxInfo
Auto Trait Implementations§
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