diff --git a/src/lib.rs b/src/lib.rs index a123584..057510c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -226,27 +226,27 @@ impl FrBigIntConversion for Fl { } } -pub struct FrWrapper { - pub fr: Fr -} -impl FrWrapper { - pub fn from_fr(fr: Fr) -> FrWrapper { - FrWrapper { fr: fr } - } -} - -impl Sum for FrWrapper { - fn sum>(iter: I) -> Self { - iter.reduce( - |frw1,frw2| { - let mut tmp = frw1.fr.clone(); - tmp.add_assign(&frw2.fr); - FrWrapper { fr: tmp } - } +// pub struct FrWrapper { +// pub fr: Fr +// } +// impl FrWrapper { +// pub fn from_fr(fr: Fr) -> FrWrapper { +// FrWrapper { fr: fr } +// } +// } - ).unwrap() - } -} +// impl Sum for FrWrapper { +// fn sum>(iter: I) -> Self { +// iter.reduce( +// |frw1,frw2| { +// let mut tmp = frw1.fr.clone(); +// tmp.add_assign(&frw2.fr); +// FrWrapper { fr: tmp } +// } + +// ).unwrap() +// } +// } impl Serialize for Point {