Struct risc0_zkvm::prove::ProverOpts
source · pub struct ProverOpts<'a> { /* private fields */ }
Expand description
Options available to modify the prover’s behavior.
Implementations§
source§impl<'a> ProverOpts<'a>
impl<'a> ProverOpts<'a>
sourcepub fn with_skip_seal(self, skip_seal: bool) -> Self
pub fn with_skip_seal(self, skip_seal: bool) -> Self
If true, skip generating the seal in receipt. This should only be used for testing. In this case, performace will be much better but we will not be able to cryptographically verify the execution.
sourcepub fn with_sendrecv_callback(
self,
channel_id: u32,
callback: impl Fn(u32, &[u8]) -> Vec<u8> + 'a + Sync
) -> Self
pub fn with_sendrecv_callback(
self,
channel_id: u32,
callback: impl Fn(u32, &[u8]) -> Vec<u8> + 'a + Sync
) -> Self
Add a callback handler for sendrecv ports, indexed by channel
numbers. The guest can call these callbacks by invoking
risc0_zkvm::guest::env::send_recv
.
sourcepub fn with_trace_callback(
self,
callback: impl FnMut(TraceEvent) -> Result<()> + 'a
) -> Self
pub fn with_trace_callback(
self,
callback: impl FnMut(TraceEvent) -> Result<()> + 'a
) -> Self
Add a callback handler for raw trace messages.
Trait Implementations§
source§impl<'a> Default for ProverOpts<'a>
impl<'a> Default for ProverOpts<'a>
source§fn default() -> ProverOpts<'a>
fn default() -> ProverOpts<'a>
Returns the “default value” for a type. Read more