pub struct Valida { /* private fields */ }
Expand description
The key structure that supports methods for running, proving and verification.
Implementations§
Source§impl Valida
impl Valida
Sourcepub fn run(
&self,
program: &Path,
stdout: &Path,
stdin: &Path,
initial_fp: Option<InitialFp>,
) -> RunStatus
pub fn run( &self, program: &Path, stdout: &Path, stdin: &Path, initial_fp: Option<InitialFp>, ) -> RunStatus
This is a wrapper for valida run –fast
See create_valida
documentation for example usage.
Sourcepub fn prove(
&self,
program: &Path,
proof: &Path,
stdin: &Path,
proving_key: Option<ProvingKey>,
initial_fp: Option<InitialFp>,
) -> ProveStatus
pub fn prove( &self, program: &Path, proof: &Path, stdin: &Path, proving_key: Option<ProvingKey>, initial_fp: Option<InitialFp>, ) -> ProveStatus
This is a wrapper for valida prove
See create_valida
documentation for example usage.
Sourcepub fn verify(
&self,
program: &Path,
proof: &Path,
stdout: &Path,
verifying_key: Option<VerifyingKey>,
initial_fp: Option<InitialFp>,
) -> VerifyStatus
pub fn verify( &self, program: &Path, proof: &Path, stdout: &Path, verifying_key: Option<VerifyingKey>, initial_fp: Option<InitialFp>, ) -> VerifyStatus
This is a wrapper for valida verify
See create_valida
documentation for example usage.
Sourcepub fn preprocess(&self, program: &Path, name: String) -> PreprocessStatus
pub fn preprocess(&self, program: &Path, name: String) -> PreprocessStatus
This is a wrapper for valida preprocess
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Valida
impl RefUnwindSafe for Valida
impl Send for Valida
impl Sync for Valida
impl Unpin for Valida
impl UnwindSafe for Valida
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