mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-04 20:03:39 +00:00
Rename params.msm() to params.empty_msm()
This commit is contained in:
parent
417174898e
commit
c264208a03
2 changed files with 3 additions and 3 deletions
|
|
@ -345,7 +345,7 @@ fn test_proving() {
|
|||
let proof = Proof::create::<DummyHash<Fq>, DummyHash<Fp>, _>(¶ms, &srs, &circuit)
|
||||
.expect("proof generation should not fail");
|
||||
|
||||
let msm_default = params.msm();
|
||||
let msm_default = params.empty_msm();
|
||||
assert!(proof.verify::<DummyHash<Fq>, DummyHash<Fp>>(¶ms, &srs, msm_default));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ impl<C: CurveAffine> Params<C> {
|
|||
|
||||
/// Generates an empty multiscalar multiplication struct using the
|
||||
/// appropriate params.
|
||||
pub fn msm(&self) -> MSM<C> {
|
||||
pub fn empty_msm(&self) -> MSM<C> {
|
||||
let g_scalars = None;
|
||||
let h_scalar = None;
|
||||
let other_scalars = vec![];
|
||||
|
|
@ -434,7 +434,7 @@ fn test_opening_proof() {
|
|||
} else {
|
||||
let opening_proof = opening_proof.unwrap();
|
||||
// Verify the opening proof
|
||||
let msm = params.msm();
|
||||
let msm = params.empty_msm();
|
||||
let guard = opening_proof
|
||||
.verify(¶ms, msm, &mut transcript_dup, x, &p, v)
|
||||
.unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue