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

Object Safety§

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"