mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Derive Eq for PreComputedPoints
This commit is contained in:
parent
d94edc6a36
commit
6559e1de37
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue