Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions elliptic-curve/src/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ pub trait AffineYIsOdd {
fn y_is_odd(&self) -> Choice;
}

/// Double a point (i.e. add it to itself)
pub trait Double {
/// Double this point.
fn double(&self) -> Self;
}

/// Decompress an elliptic curve point.
///
/// Point decompression recovers an original curve point from its x-coordinate
Expand Down