pub struct BenchmarkCtx {
pub num_gates: usize,
group_map: BWParameters<VestaParameters>,
index: ProverIndex<FULL_ROUNDS, Vesta, <OpeningProof<Vesta, FULL_ROUNDS> as OpenProof<Vesta, FULL_ROUNDS>>::SRS>,
}Fields§
§num_gates: usize§group_map: BWParameters<VestaParameters>§index: ProverIndex<FULL_ROUNDS, Vesta, <OpeningProof<Vesta, FULL_ROUNDS> as OpenProof<Vesta, FULL_ROUNDS>>::SRS>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, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp>)
pub fn create_proof( &self, ) -> (ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, Vec<Fp>)
Produces a proof
pub fn batch_verification( &self, batch: &[(ProverProof<Vesta, OpeningProof<Vesta, FULL_ROUNDS>, FULL_ROUNDS>, 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 UnsafeUnpin 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