mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-05 20:10:32 +00:00
Collect some verifier metrics
This commit is contained in:
parent
d4424db8d4
commit
236b3a6692
2 changed files with 2 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ impl<'a, C: CurveAffine> MSM<'a, C> {
|
||||||
|
|
||||||
assert_eq!(scalars.len(), len);
|
assert_eq!(scalars.len(), len);
|
||||||
|
|
||||||
|
metrics::increment!("multiexp", "size" => format!("{}", len), "fn" => "MSM::eval");
|
||||||
bool::from(best_multiexp(&scalars, &bases).is_zero())
|
bool::from(best_multiexp(&scalars, &bases).is_zero())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ impl<'a, C: CurveAffine> Guard<'a, C> {
|
||||||
pub fn compute_g(&self) -> C {
|
pub fn compute_g(&self) -> C {
|
||||||
let s = compute_s(&self.challenges_sq, self.allinv);
|
let s = compute_s(&self.challenges_sq, self.allinv);
|
||||||
|
|
||||||
|
metrics::increment!("multiexp", "size" => format!("{}", s.len()), "fn" => "compute_g");
|
||||||
let mut tmp = best_multiexp(&s, &self.msm.params.g);
|
let mut tmp = best_multiexp(&s, &self.msm.params.g);
|
||||||
tmp += self.msm.params.h;
|
tmp += self.msm.params.h;
|
||||||
tmp.to_affine()
|
tmp.to_affine()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue