Struct risc0_zkvm::BonsaiProver
source · pub struct BonsaiProver { /* private fields */ }
Expand description
An implementation of a Prover that runs proof workloads via Bonsai.
Requires BONSAI_API_URL
and BONSAI_API_KEY
environment variables to
submit proving sessions to Bonsai.
Implementations§
source§impl BonsaiProver
impl BonsaiProver
sourcepub fn new(name: &str) -> Self
pub fn new(name: &str) -> Self
Construct a BonsaiProver.
Trait Implementations§
source§impl Prover for BonsaiProver
impl Prover for BonsaiProver
source§fn prove_with_ctx(
&self,
env: ExecutorEnv<'_>,
ctx: &VerifierContext,
elf: &[u8],
opts: &ProverOpts
) -> Result<Receipt>
fn prove_with_ctx( &self, env: ExecutorEnv<'_>, ctx: &VerifierContext, elf: &[u8], opts: &ProverOpts ) -> Result<Receipt>
Prove zkVM execution starting from the specified ELF binary with the
specified VerifierContext and ProverOpts.
Auto Trait Implementations§
impl RefUnwindSafe for BonsaiProver
impl Send for BonsaiProver
impl Sync for BonsaiProver
impl Unpin for BonsaiProver
impl UnwindSafe for BonsaiProver
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