pub trait CurveId {
// Required method
fn curve_id() -> u64;
}Expand description
Trait for identifying elliptic curves used in zero-knowledge proof systems.
This trait provides a way to statically identify different elliptic curves through unique numeric identifiers. Each curve type implements this trait to return its specific curve ID, enabling type-safe curve selection and backend specialization.
Curve types are typically used as type parameters to specify which elliptic curve a particular backend or proof system should use.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.