pub struct Ed25519;
Trait Implementations§
Source§impl Curve for Ed25519
impl Curve for Ed25519
type PublicKey = [u8; 32]
type Signature = [u8; 64]
Source§type VerifyingKey = <Ed25519 as Curve>::PublicKey
type VerifyingKey = <Ed25519 as Curve>::PublicKey
Public key that should be known prior to verification
fn verify( signature: &Self::Signature, message: &Self::Message, public_key: &Self::VerifyingKey, ) -> Option<Self::PublicKey>
Auto Trait Implementations§
impl Freeze for Ed25519
impl RefUnwindSafe for Ed25519
impl Send for Ed25519
impl Sync for Ed25519
impl Unpin for Ed25519
impl UnwindSafe for Ed25519
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