Struct risc0_zkvm::Groth16Receipt
source · pub struct Groth16Receipt {
pub seal: Vec<u8>,
pub claim: ReceiptClaim,
}
Expand description
A receipt composed of a Groth16 over the BN_254 curve
Fields§
§seal: Vec<u8>
A Groth16 proof of a zkVM execution with the associated claim.
claim: ReceiptClaim
ReceiptClaim containing information about the execution that this receipt proves.
Implementations§
source§impl Groth16Receipt
impl Groth16Receipt
sourcepub fn verify_integrity(&self) -> Result<(), VerificationError>
pub fn verify_integrity(&self) -> Result<(), VerificationError>
Verify the integrity of this receipt, ensuring the claim is attested to by the seal.
Trait Implementations§
source§impl Clone for Groth16Receipt
impl Clone for Groth16Receipt
source§fn clone(&self) -> Groth16Receipt
fn clone(&self) -> Groth16Receipt
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 Groth16Receipt
impl Debug for Groth16Receipt
source§impl<'de> Deserialize<'de> for Groth16Receipt
impl<'de> Deserialize<'de> for Groth16Receipt
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 Groth16Receipt
impl Send for Groth16Receipt
impl Sync for Groth16Receipt
impl Unpin for Groth16Receipt
impl UnwindSafe for Groth16Receipt
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