Struct risc0_zkvm::CompositeReceipt
source · pub struct CompositeReceipt {
pub segments: Vec<SegmentReceipt>,
pub assumptions: Vec<InnerReceipt>,
pub journal_digest: Option<Digest>,
}
Expand description
A receipt composed of one or more SegmentReceipt structs proving a single execution with continuations, and zero or more Receipt stucts proving any assumptions.
Fields§
§segments: Vec<SegmentReceipt>
Segment receipts forming the proof of a execution with continuations.
assumptions: Vec<InnerReceipt>
An ordered list of assumptions, either proven or unresolved, made within the continuation represented by the segment receipts. If any assumptions are unresolved, this receipt is only conditionally valid.
journal_digest: Option<Digest>
Digest of journal included in the final output of the continuation. Will
be None
if the continuation has no output (e.g. it ended in
Fault
).
Implementations§
source§impl CompositeReceipt
impl CompositeReceipt
sourcepub fn verify_integrity_with_context(
&self,
ctx: &VerifierContext
) -> Result<(), VerificationError>
pub fn verify_integrity_with_context( &self, ctx: &VerifierContext ) -> Result<(), VerificationError>
Verify the integrity of this receipt, ensuring the claim is attested to by the seal.
sourcepub fn get_claim(&self) -> Result<ReceiptClaim, VerificationError>
pub fn get_claim(&self) -> Result<ReceiptClaim, VerificationError>
Returns the ReceiptClaim for this CompositeReceipt.
Trait Implementations§
source§impl Clone for CompositeReceipt
impl Clone for CompositeReceipt
source§fn clone(&self) -> CompositeReceipt
fn clone(&self) -> CompositeReceipt
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 CompositeReceipt
impl Debug for CompositeReceipt
source§impl<'de> Deserialize<'de> for CompositeReceipt
impl<'de> Deserialize<'de> for CompositeReceipt
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
Auto Trait Implementations§
impl RefUnwindSafe for CompositeReceipt
impl Send for CompositeReceipt
impl Sync for CompositeReceipt
impl Unpin for CompositeReceipt
impl UnwindSafe for CompositeReceipt
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