Skip to content
Merged
Show file tree
Hide file tree
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
@@ -1,5 +1,11 @@
//! Traits for elliptic curve points

/// Point compression settings
pub trait Compression {
/// Should point compression be applied by default?
const COMPRESS_POINTS: bool;
}

/// Obtain the generator point.
pub trait Generator {
/// Get the generator point for this elliptic curve
Expand Down
4 changes: 1 addition & 3 deletions elliptic-curve/src/sec1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,7 @@ mod tests {
type FieldSize = U32;
}

impl weierstrass::Curve for ExampleCurve {
const COMPRESS_POINTS: bool = false;
}
impl weierstrass::Curve for ExampleCurve {}

type EncodedPoint = super::EncodedPoint<ExampleCurve>;

Expand Down
5 changes: 1 addition & 4 deletions elliptic-curve/src/weierstrass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@
pub mod point;

/// Marker trait for elliptic curves in short Weierstrass form
pub trait Curve: super::Curve {
/// Should point compression be applied by default?
const COMPRESS_POINTS: bool;
}
pub trait Curve: super::Curve {}