Skip to main content

Curve

Trait Curve 

Source
pub trait Curve:
    Debug
    + Sync
    + Send
    + Sealed {
    // Required method
    fn group() -> Group;
}
Expand description

An elliptic curve.

§Safety

The current EC implementation are thread-safe. Implementers should make sure that further additions to the curve family should respect thread-safety, too.

Required Methods§

Source

fn group() -> Group

Return the underlying [Group] of the curve

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§