From 0633086ac19fd2ed2cd0c4753969342ef202e2dc Mon Sep 17 00:00:00 2001 From: therealyingtong Date: Sun, 13 Sep 2020 11:33:44 +0800 Subject: [PATCH] Make MSM and Guard derive Clone --- src/poly/commitment.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/poly/commitment.rs b/src/poly/commitment.rs index 4ac51a3..7f96286 100644 --- a/src/poly/commitment.rs +++ b/src/poly/commitment.rs @@ -24,7 +24,7 @@ pub struct OpeningProof { } /// A multiscalar multiplication in the polynomial commitment scheme -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct MSM<'a, C: CurveAffine> { params: &'a Params, g_scalars: Option>, @@ -246,7 +246,7 @@ impl Params { } /// A guard returned by the verifier -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Guard<'a, C: CurveAffine> { msm: MSM<'a, C>, neg_z1: C::Scalar,