pub struct PrimeFieldNumericSecp256k1;Expand description
secp256k1 base-field arithmetic.
Trait Implementations§
Source§impl AxisExtension for PrimeFieldNumericSecp256k1
impl AxisExtension for PrimeFieldNumericSecp256k1
Source§const AXIS_ADDRESS: &'static str = <PrimeFieldNumericSecp256k1 as FieldAxis>::AXIS_ADDRESS
const AXIS_ADDRESS: &'static str = <PrimeFieldNumericSecp256k1 as FieldAxis>::AXIS_ADDRESS
ADR-017 content address of this axis trait. The SDK macro
derives this from the trait name and method signatures.
Source§const MAX_OUTPUT_BYTES: usize = <PrimeFieldNumericSecp256k1 as FieldAxis>::MAX_OUTPUT_BYTES
const MAX_OUTPUT_BYTES: usize = <PrimeFieldNumericSecp256k1 as FieldAxis>::MAX_OUTPUT_BYTES
Maximum bytes any kernel of this axis returns.
Source§fn dispatch_kernel(
kernel_id: u32,
input: &[u8],
out: &mut [u8],
) -> Result<usize, ShapeViolation>
fn dispatch_kernel( kernel_id: u32, input: &[u8], out: &mut [u8], ) -> Result<usize, ShapeViolation>
Dispatch the kernel identified by
kernel_id against the
evaluated input bytes. The implementation copies the kernel’s
output into out and returns the written length. Read moreSource§impl Clone for PrimeFieldNumericSecp256k1
impl Clone for PrimeFieldNumericSecp256k1
Source§fn clone(&self) -> PrimeFieldNumericSecp256k1
fn clone(&self) -> PrimeFieldNumericSecp256k1
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrimeFieldNumericSecp256k1
impl Debug for PrimeFieldNumericSecp256k1
Source§impl Default for PrimeFieldNumericSecp256k1
impl Default for PrimeFieldNumericSecp256k1
Source§fn default() -> PrimeFieldNumericSecp256k1
fn default() -> PrimeFieldNumericSecp256k1
Returns the “default value” for a type. Read more
Source§impl FieldAxis for PrimeFieldNumericSecp256k1
impl FieldAxis for PrimeFieldNumericSecp256k1
Source§const AXIS_ADDRESS: &'static str = "https://uor.foundation/axis/FieldAxis/Secp256k1Base"
const AXIS_ADDRESS: &'static str = "https://uor.foundation/axis/FieldAxis/Secp256k1Base"
ADR-017 content address.
Source§const MAX_OUTPUT_BYTES: usize = WIDTH
const MAX_OUTPUT_BYTES: usize = WIDTH
Operand byte-width (32 bytes for secp256k1).
Source§impl SubstrateTermBody for PrimeFieldNumericSecp256k1
impl SubstrateTermBody for PrimeFieldNumericSecp256k1
Source§fn body_arena() -> &'static [Term]
fn body_arena() -> &'static [Term]
The Term arena the kernel decomposes to. Empty slice signals a
primitive-fast-path axis whose body the implementation may evaluate
through
dispatch_kernel directly per ADR-055’s optional fast-path.impl Copy for PrimeFieldNumericSecp256k1
Auto Trait Implementations§
impl Freeze for PrimeFieldNumericSecp256k1
impl RefUnwindSafe for PrimeFieldNumericSecp256k1
impl Send for PrimeFieldNumericSecp256k1
impl Sync for PrimeFieldNumericSecp256k1
impl Unpin for PrimeFieldNumericSecp256k1
impl UnsafeUnpin for PrimeFieldNumericSecp256k1
impl UnwindSafe for PrimeFieldNumericSecp256k1
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more