Struct risc0_zkvm::SystemState
source · pub struct SystemState {
pub pc: u32,
pub merkle_root: Digest,
}
Expand description
Represents the public state of a segment, needed for continuations and receipt verification.
Fields§
§pc: u32
The program counter.
merkle_root: Digest
The root hash of a merkle tree which confirms the integrity of the memory image.
Implementations§
Trait Implementations§
source§impl Clone for SystemState
impl Clone for SystemState
source§fn clone(&self) -> SystemState
fn clone(&self) -> SystemState
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 SystemState
impl Debug for SystemState
source§impl<'de> Deserialize<'de> for SystemState
impl<'de> Deserialize<'de> for SystemState
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SystemState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SystemState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SystemState
impl PartialEq for SystemState
source§fn eq(&self, other: &SystemState) -> bool
fn eq(&self, other: &SystemState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SystemState
impl Serialize for SystemState
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SystemState
Auto Trait Implementations§
impl RefUnwindSafe for SystemState
impl Send for SystemState
impl Sync for SystemState
impl Unpin for SystemState
impl UnwindSafe for SystemState
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