Struct sp1_lib::ed25519::Ed25519AffinePoint
source · #[repr(align(4))]pub struct Ed25519AffinePoint(pub [u32; 16]);
Expand description
An affine point on the Ed25519 curve.
Tuple Fields§
§0: [u32; 16]
Implementations§
Trait Implementations§
source§impl AffinePoint<N> for Ed25519AffinePoint
impl AffinePoint<N> for Ed25519AffinePoint
source§const GENERATOR: [u32; 16] = _
const GENERATOR: [u32; 16] = _
The generator/base point for the Ed25519 curve. Reference: https://datatracker.ietf.org/doc/html/rfc7748#section-4.1
source§fn add_assign(&mut self, other: &Self)
fn add_assign(&mut self, other: &Self)
Adds the given
AffinePoint
to self
.source§fn from(x: &[u8], y: &[u8]) -> Self
fn from(x: &[u8], y: &[u8]) -> Self
Creates a new
AffinePoint
from the given x and y coordinates. Read moresource§fn from_le_bytes(bytes: &[u8]) -> Self
fn from_le_bytes(bytes: &[u8]) -> Self
Creates a new
AffinePoint
from the given bytes in little endian.source§fn to_le_bytes(&self) -> Vec<u8>
fn to_le_bytes(&self) -> Vec<u8>
Creates a new
AffinePoint
from the given bytes in big endian.source§fn mul_assign(&mut self, scalar: &[u32]) -> Result<(), MulAssignError>
fn mul_assign(&mut self, scalar: &[u32]) -> Result<(), MulAssignError>
Multiplies
self
by the given scalar.source§impl Clone for Ed25519AffinePoint
impl Clone for Ed25519AffinePoint
source§fn clone(&self) -> Ed25519AffinePoint
fn clone(&self) -> Ed25519AffinePoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for Ed25519AffinePoint
Auto Trait Implementations§
impl Freeze for Ed25519AffinePoint
impl RefUnwindSafe for Ed25519AffinePoint
impl Send for Ed25519AffinePoint
impl Sync for Ed25519AffinePoint
impl Unpin for Ed25519AffinePoint
impl UnwindSafe for Ed25519AffinePoint
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)