mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-11 08:21:30 +01:00
Refactor bit iteration infrastructure:
* `to_bits` -> `to_bits_le` * `BitIterator` -> `BitIteratorLE` + `BitIteratorBE` * `found_one`/`seen_one` -> `BitIteratorBE::without_leading_zeros`
This commit is contained in:
@@ -33,7 +33,7 @@ fn pedersen_comm_eval(c: &mut Criterion) {
|
||||
let rng = &mut rand::thread_rng();
|
||||
let commitment_randomness = Randomness::rand(rng);
|
||||
Commitment::<Edwards, CommWindow>::commit(¶meters, &input, &commitment_randomness)
|
||||
.unwrap();
|
||||
.unwrap()
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
@@ -29,9 +29,7 @@ fn pedersen_crh_eval(c: &mut Criterion) {
|
||||
let parameters = CRH::<Edwards, HashWindow>::setup(&mut rng).unwrap();
|
||||
let input = vec![5u8; 128];
|
||||
c.bench_function("Pedersen CRH Eval", move |b| {
|
||||
b.iter(|| {
|
||||
CRH::<Edwards, HashWindow>::evaluate(¶meters, &input).unwrap();
|
||||
})
|
||||
b.iter(|| CRH::<Edwards, HashWindow>::evaluate(¶meters, &input).unwrap())
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user