pub struct SetVerifierService<P> { /* private fields */ }Implementations§
Source§impl<P> SetVerifierService<P>
impl<P> SetVerifierService<P>
pub fn new(address: Address, provider: P, caller: Address) -> Self
pub fn instance(&self) -> &IRiscZeroSetVerifierInstance<P, Ethereum>
pub fn with_timeout(self, tx_timeout: Duration) -> Self
Sourcepub fn with_event_query_config(self, config: EventQueryConfig) -> Self
pub fn with_event_query_config(self, config: EventQueryConfig) -> Self
Sets the event query configuration.
pub async fn contains_root(&self, root: B256) -> Result<bool>
pub async fn submit_merkle_root(&self, root: B256, seal: Bytes) -> Result<()>
pub async fn verify( &self, seal: Bytes, image_id: B256, journal_digest: B256, ) -> Result<()>
pub async fn image_info(&self) -> Result<(B256, String)>
Sourcepub async fn fetch_verified_root_seal(&self, root: B256) -> Result<Bytes>
pub async fn fetch_verified_root_seal(&self, root: B256) -> Result<Bytes>
Returns the seal if of the given verified root.
Sourcepub async fn fetch_receipt(
&self,
seal: Bytes,
image_id: impl Into<Digest>,
journal: impl Into<Vec<u8>>,
) -> Result<SetInclusionReceipt<ReceiptClaim>>
pub async fn fetch_receipt( &self, seal: Bytes, image_id: impl Into<Digest>, journal: impl Into<Vec<u8>>, ) -> Result<SetInclusionReceipt<ReceiptClaim>>
Decodes a seal into a SetInclusionReceipt including a risc0_zkvm::Groth16Receipt as its root.
Sourcepub async fn fetch_receipt_with_claim(
&self,
seal: Bytes,
claim: ReceiptClaim,
journal: impl Into<Vec<u8>>,
) -> Result<SetInclusionReceipt<ReceiptClaim>>
pub async fn fetch_receipt_with_claim( &self, seal: Bytes, claim: ReceiptClaim, journal: impl Into<Vec<u8>>, ) -> Result<SetInclusionReceipt<ReceiptClaim>>
Decodes a seal into a SetInclusionReceipt including a risc0_zkvm::Groth16Receipt as its root.
Trait Implementations§
Source§impl<P: Clone> Clone for SetVerifierService<P>
impl<P: Clone> Clone for SetVerifierService<P>
Source§fn clone(&self) -> SetVerifierService<P>
fn clone(&self) -> SetVerifierService<P>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<P> Freeze for SetVerifierService<P>where
P: Freeze,
impl<P> RefUnwindSafe for SetVerifierService<P>where
P: RefUnwindSafe,
impl<P> Send for SetVerifierService<P>where
P: Send,
impl<P> Sync for SetVerifierService<P>where
P: Sync,
impl<P> Unpin for SetVerifierService<P>where
P: Unpin,
impl<P> UnwindSafe for SetVerifierService<P>where
P: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more