mirror of https://github.com/zcash/halo2.git
Make MSM and Guard derive Clone
This commit is contained in:
parent
14d1f41e08
commit
0633086ac1
|
@ -24,7 +24,7 @@ pub struct OpeningProof<C: CurveAffine> {
|
|||
}
|
||||
|
||||
/// A multiscalar multiplication in the polynomial commitment scheme
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct MSM<'a, C: CurveAffine> {
|
||||
params: &'a Params<C>,
|
||||
g_scalars: Option<Vec<C::Scalar>>,
|
||||
|
@ -246,7 +246,7 @@ impl<C: CurveAffine> Params<C> {
|
|||
}
|
||||
|
||||
/// 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,
|
||||
|
|
Loading…
Reference in New Issue