pub struct Receipt { /* private fields */ }
Expand description

A record attesting to the correct execution of a ‘method’.

Consists of:

  • journal: all data the method wants to publicly output and commit to.
  • seal: the cryptographic blob which proves that the receipt is valid.

Implementations

Construct a new Receipt from individual journal and seal parts.

Verify that the current Receipt is a valid result of executing the method associated with the given method ID in a ZKVM.

Provides access to the seal of a Receipt.

Provides access to the journal of a Receipt.

Provides access to the journal of a Receipt as a Vec<u32>.

Trait Implementations

Deserialize a receipt.

Executes the destructor for this type. Read more

Generate a serialized version of the whole receipt.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.