Struct risc0_zkvm::SuccinctReceipt
source · pub struct SuccinctReceipt {
pub seal: Vec<u32>,
pub control_id: Digest,
pub meta: ReceiptMetadata,
}
Expand description
This struct represents a receipt for one or more crate::SegmentReceipts joined through recursion.
Fields§
§seal: Vec<u32>
the cryptographic seal of this receipt
control_id: Digest
the control ID of this receipt
meta: ReceiptMetadata
the receipt metadata containing states of the system during the segment executions
Implementations§
source§impl SuccinctReceipt
impl SuccinctReceipt
sourcepub fn verify_with_context(
&self,
ctx: &VerifierContext
) -> Result<(), VerificationError>
pub fn verify_with_context( &self, ctx: &VerifierContext ) -> Result<(), VerificationError>
Verify the integrity of this receipt.
sourcepub fn get_seal_bytes(&self) -> Vec<u8>
pub fn get_seal_bytes(&self) -> Vec<u8>
Return the seal for this receipt, as a vector of bytes.
Trait Implementations§
source§impl Clone for SuccinctReceipt
impl Clone for SuccinctReceipt
source§fn clone(&self) -> SuccinctReceipt
fn clone(&self) -> SuccinctReceipt
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 SuccinctReceipt
impl Debug for SuccinctReceipt
source§impl<'de> Deserialize<'de> for SuccinctReceipt
impl<'de> Deserialize<'de> for SuccinctReceipt
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 PartialEq for SuccinctReceipt
impl PartialEq for SuccinctReceipt
source§fn eq(&self, other: &SuccinctReceipt) -> bool
fn eq(&self, other: &SuccinctReceipt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SuccinctReceipt
impl Serialize for SuccinctReceipt
source§impl TryFrom<SuccinctReceipt> for Asset
impl TryFrom<SuccinctReceipt> for Asset
impl StructuralPartialEq for SuccinctReceipt
Auto Trait Implementations§
impl RefUnwindSafe for SuccinctReceipt
impl Send for SuccinctReceipt
impl Sync for SuccinctReceipt
impl Unpin for SuccinctReceipt
impl UnwindSafe for SuccinctReceipt
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