cairo_lang_sierra::extensions::modules::starknet::secp256

Trait Secp256Trait

Source
pub trait Secp256Trait: Default {
    const STR_ID_NEW: &'static str;
    const STR_ID_ADD: &'static str;
    const STR_ID_MUL: &'static str;
    const STR_ID_GET_POINT_FROM_X: &'static str;
    const STR_ID_GET_XY: &'static str;
    const TYPE_ID: GenericTypeId;
    const TYPE_ID_STR: &'static str;
}

Required Associated Constants§

Source

const STR_ID_NEW: &'static str

Source

const STR_ID_ADD: &'static str

Source

const STR_ID_MUL: &'static str

Source

const STR_ID_GET_POINT_FROM_X: &'static str

Source

const STR_ID_GET_XY: &'static str

Source

const TYPE_ID: GenericTypeId

Source

const TYPE_ID_STR: &'static str

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 Secp256Trait for Secp256k1

Source§

const STR_ID_NEW: &'static str = "secp256k1_new_syscall"

Source§

const STR_ID_ADD: &'static str = "secp256k1_add_syscall"

Source§

const STR_ID_MUL: &'static str = "secp256k1_mul_syscall"

Source§

const STR_ID_GET_POINT_FROM_X: &'static str = "secp256k1_get_point_from_x_syscall"

Source§

const STR_ID_GET_XY: &'static str = "secp256k1_get_xy_syscall"

Source§

const TYPE_ID: GenericTypeId = Secp256k1PointType::ID

Source§

const TYPE_ID_STR: &'static str = "core::starknet::secp256k1::Secp256k1Point"

Source§

impl Secp256Trait for Secp256r1

Source§

const STR_ID_NEW: &'static str = "secp256r1_new_syscall"

Source§

const STR_ID_ADD: &'static str = "secp256r1_add_syscall"

Source§

const STR_ID_MUL: &'static str = "secp256r1_mul_syscall"

Source§

const STR_ID_GET_POINT_FROM_X: &'static str = "secp256r1_get_point_from_x_syscall"

Source§

const STR_ID_GET_XY: &'static str = "secp256r1_get_xy_syscall"

Source§

const TYPE_ID: GenericTypeId = Secp256r1PointType::ID

Source§

const TYPE_ID_STR: &'static str = "core::starknet::secp256r1::Secp256r1Point"