Rename params.msm() to params.empty_msm()

This commit is contained in:
therealyingtong 2020-09-13 23:07:05 +08:00
parent 417174898e
commit c264208a03
No known key found for this signature in database
GPG key ID: 179F32A1503D607E
2 changed files with 3 additions and 3 deletions

View file

@ -345,7 +345,7 @@ fn test_proving() {
let proof = Proof::create::<DummyHash<Fq>, DummyHash<Fp>, _>(&params, &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>>(&params, &srs, msm_default));
}
}

View file

@ -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(&params, msm, &mut transcript_dup, x, &p, v)
.unwrap();