pub fn bp_proof_gen_small_value(c: &mut Criterion) {
    let pc_gens = PedersenGens::default();
    let bp_gens = BulletproofGens::new(BIT_SIZE, 1);
    let mut transcript = Transcript::new(&[]);
    let secret: u64 = 1u64;
    let blinding: Scalar = Scalar::from(11u64);

    c.bench_function("bp_proof_gen_small_value", |bench| {
        bench.iter(|| {
            RangeProof::prove_single(
                &bp_gens,
                &pc_gens,
                &mut transcript,
                secret,
                &blinding,
                BIT_SIZE,
            )
        })
    });
}
/// Bulletproofs proof generation benchmark for a small value.
Bulletproofs proof generation benchmark for a small value.
Bulletproofs proof generation benchmark for a small value .
pub fn bp_proof_gen_small_value(c: &mut Criterion) {
    let pc_gens = PedersenGens::default();
    let bp_gens = BulletproofGens::new(BIT_SIZE, 1);
    let mut transcript = Transcript::new(&[]);
    let secret: u64 = 1u64;
    let blinding: Scalar = Scalar::from(11u64);
    c.bench_function("bp_proof_gen_small_value", |bench| {
        bench.iter(|| {
            RangeProof::prove_single(
                &bp_gens,
                &pc_gens,
                &mut transcript,
                secret,
                &blinding,
                BIT_SIZE,
            )
        })
    });
}
pub fn bp_proof_gen_small_value ( c : & mut Criterion ) { let pc_gens = PedersenGens :: default ( ) ; let bp_gens = BulletproofGens :: new ( BIT_SIZE , 1 ) ; let mut transcript = Transcript :: new ( & [ ] ) ; let secret : u64 = 1u64 ; let blinding : Scalar = Scalar :: from ( 11u64 ) ; c . bench_function ( " " , | bench | { bench . iter ( | | { RangeProof :: prove_single ( & bp_gens , & pc_gens , & mut transcript , secret , & blinding , BIT_SIZE , ) } ) } ) ; }
Bulletproofs proof generation benchmark for a small value.
Bulletproofs proof generation benchmark for a small value .
c
&mut Criterion
c
&mut Criterion