Struct risc0_zkvm::ProverOpts
source · pub struct ProverOpts {
pub hashfn: String,
pub prove_guest_errors: bool,
}
Expand description
Options to configure a Prover.
Fields§
§hashfn: String
The hash function to use.
prove_guest_errors: bool
When false, only prove execution sessions that end in a successful
crate::ExitCode (i.e. Halted(0)
or Paused(0)
).
When set to true, any completed execution session will be proven, including indicated
errors (e.g. Halted(1)
) and sessions ending in Fault
.
Trait Implementations§
source§impl Clone for ProverOpts
impl Clone for ProverOpts
source§fn clone(&self) -> ProverOpts
fn clone(&self) -> ProverOpts
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 Default for ProverOpts
impl Default for ProverOpts
source§fn default() -> Self
fn default() -> Self
Return ProverOpts with the Poseidon hash function and
prove_guest_errors
set to false.
source§impl<'de> Deserialize<'de> for ProverOpts
impl<'de> Deserialize<'de> for ProverOpts
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 ProverOpts
impl Send for ProverOpts
impl Sync for ProverOpts
impl Unpin for ProverOpts
impl UnwindSafe for ProverOpts
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