Derive Eq for PreComputedPoints

This commit is contained in:
Henry de Valence 2017-01-09 15:52:13 -05:00
parent d94edc6a36
commit 6559e1de37

View file

@ -212,7 +212,8 @@ pub struct CompletedPoint {
/// A pre-computed point in the affine model for the curve, /// A pre-computed point in the affine model for the curve,
/// represented as (y+x, y-x, 2dxy). These precomputations /// represented as (y+x, y-x, 2dxy). These precomputations
/// accelerate addition and subtraction. /// accelerate addition and subtraction.
#[derive(Copy, Clone)] // Safe to derive Eq because affine coordinates.
#[derive(Copy, Clone, Eq, PartialEq)]
#[allow(missing_docs)] #[allow(missing_docs)]
pub struct PreComputedPoint { pub struct PreComputedPoint {
pub y_plus_x: FieldElement, pub y_plus_x: FieldElement,