pub struct BenchmarkCtx {
pub num_gates: usize,
/* private fields */
}
Fields§
§num_gates: usize
Implementations§
Source§impl BenchmarkCtx
impl BenchmarkCtx
pub fn srs_size(&self) -> usize
Sourcepub fn new(srs_size_log2: u32) -> Self
pub fn new(srs_size_log2: u32) -> Self
This will create a context that allows for benchmarks of num_gates
gates (multiplication gates).
Sourcepub fn create_proof(&self) -> (ProverProof<Vesta, OpeningProof<Vesta>>, Vec<Fp>)
pub fn create_proof(&self) -> (ProverProof<Vesta, OpeningProof<Vesta>>, Vec<Fp>)
Produces a proof
pub fn batch_verification( &self, batch: &[(ProverProof<Vesta, OpeningProof<Vesta>>, Vec<Fp>)], )
Auto Trait Implementations§
impl !Freeze for BenchmarkCtx
impl RefUnwindSafe for BenchmarkCtx
impl Send for BenchmarkCtx
impl Sync for BenchmarkCtx
impl Unpin for BenchmarkCtx
impl UnwindSafe for BenchmarkCtx
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