Struct risc0_zkvm::ExternalProver
source · pub struct ExternalProver { /* private fields */ }
Expand description
An implementation of a Prover that runs proof workloads via an external
r0vm
process.
Implementations§
Trait Implementations§
source§impl Executor for ExternalProver
impl Executor for ExternalProver
source§fn execute(
&self,
env: ExecutorEnv<'_>,
image: MemoryImage
) -> Result<SessionInfo>
fn execute( &self, env: ExecutorEnv<'_>, image: MemoryImage ) -> Result<SessionInfo>
Execute the specified MemoryImage. Read more
source§fn execute_elf(&self, env: ExecutorEnv<'_>, elf: &[u8]) -> Result<SessionInfo>
fn execute_elf(&self, env: ExecutorEnv<'_>, elf: &[u8]) -> Result<SessionInfo>
Execute the specified ELF binary. Read more
source§impl Prover for ExternalProver
impl Prover for ExternalProver
source§fn prove(
&self,
env: ExecutorEnv<'_>,
ctx: &VerifierContext,
opts: &ProverOpts,
image: MemoryImage
) -> Result<Receipt>
fn prove( &self, env: ExecutorEnv<'_>, ctx: &VerifierContext, opts: &ProverOpts, image: MemoryImage ) -> Result<Receipt>
Prove the specified MemoryImage.
source§fn prove_elf(&self, env: ExecutorEnv<'_>, elf: &[u8]) -> Result<Receipt>
fn prove_elf(&self, env: ExecutorEnv<'_>, elf: &[u8]) -> Result<Receipt>
Prove the specified ELF binary.
source§fn prove_elf_with_ctx(
&self,
env: ExecutorEnv<'_>,
ctx: &VerifierContext,
elf: &[u8],
opts: &ProverOpts
) -> Result<Receipt>
fn prove_elf_with_ctx( &self, env: ExecutorEnv<'_>, ctx: &VerifierContext, elf: &[u8], opts: &ProverOpts ) -> Result<Receipt>
Prove the specified MemoryImage with the specified VerifierContext.
Auto Trait Implementations§
impl RefUnwindSafe for ExternalProver
impl Send for ExternalProver
impl Sync for ExternalProver
impl Unpin for ExternalProver
impl UnwindSafe for ExternalProver
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