diff --git a/src/circuit/gadget/ecc.rs b/src/circuit/gadget/ecc.rs index 72856ec3d..742eec845 100644 --- a/src/circuit/gadget/ecc.rs +++ b/src/circuit/gadget/ecc.rs @@ -220,12 +220,22 @@ where } /// An elliptic curve point over the given curve. -#[derive(Copy, Clone, Debug, Eq, PartialEq)] +#[derive(Copy, Clone, Debug)] pub struct Point + Clone + Debug + Eq> { chip: EccChip, inner: EccChip::Point, } +impl + Clone + Debug + Eq> PartialEq + for Point +{ + fn eq(&self, other: &Self) -> bool { + self.inner == other.inner + } +} + +impl + Clone + Debug + Eq> Eq for Point {} + impl + Clone + Debug + Eq> Point { /// Constructs a new point with the given value. pub fn new(