Trait TypedCurve

Source
pub trait TypedCurve: Curve {
    const CURVE_TYPE: CurveType;

    // Provided methods
    fn to_base58(bytes: impl AsRef<[u8]>) -> String { ... }
    fn parse_base58<const N: usize>(
        s: impl AsRef<str>,
    ) -> Result<[u8; N], ParseCurveError> { ... }
}

Required Associated Constants§

Provided Methods§

Source

fn to_base58(bytes: impl AsRef<[u8]>) -> String

Source

fn parse_base58<const N: usize>( s: impl AsRef<str>, ) -> Result<[u8; N], ParseCurveError>

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.

Implementors§

Source§

impl TypedCurve for Ed25519

Source§

const CURVE_TYPE: CurveType = CurveType::Ed25519

Source§

impl TypedCurve for P256

Source§

const CURVE_TYPE: CurveType = CurveType::P256

Source§

impl TypedCurve for Secp256k1

Source§

const CURVE_TYPE: CurveType = CurveType::Secp256k1