From 6559e1de37d3d9e52deeb77739e516ec76f6f17b Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Mon, 9 Jan 2017 15:52:13 -0500 Subject: [PATCH] Derive Eq for PreComputedPoints --- src/curve.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/curve.rs b/src/curve.rs index 8af03a5..769d232 100644 --- a/src/curve.rs +++ b/src/curve.rs @@ -212,7 +212,8 @@ pub struct CompletedPoint { /// A pre-computed point in the affine model for the curve, /// represented as (y+x, y-x, 2dxy). These precomputations /// accelerate addition and subtraction. -#[derive(Copy, Clone)] +// Safe to derive Eq because affine coordinates. +#[derive(Copy, Clone, Eq, PartialEq)] #[allow(missing_docs)] pub struct PreComputedPoint { pub y_plus_x: FieldElement,