pub struct Ed25519KeyPair { /* private fields */ }Expand description
Ed25519 key pair for authentication
Implementations§
Source§impl Ed25519KeyPair
impl Ed25519KeyPair
Sourcepub fn from_signing_key(signing_key: SigningKey) -> Self
pub fn from_signing_key(signing_key: SigningKey) -> Self
Create a key pair from an existing signing key
Sourcepub fn public_key_spki(&self) -> Vec<u8> ⓘ
pub fn public_key_spki(&self) -> Vec<u8> ⓘ
Get the public key in SubjectPublicKeyInfo format
Sourcepub fn public_key_bytes(&self) -> [u8; 32]
pub fn public_key_bytes(&self) -> [u8; 32]
Get the raw public key bytes
Sourcepub fn verifying_key(&self) -> &VerifyingKey
pub fn verifying_key(&self) -> &VerifyingKey
Get a reference to the verifying key
Trait Implementations§
Source§impl Clone for Ed25519KeyPair
impl Clone for Ed25519KeyPair
Source§fn clone(&self) -> Ed25519KeyPair
fn clone(&self) -> Ed25519KeyPair
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Ed25519KeyPair
impl RefUnwindSafe for Ed25519KeyPair
impl Send for Ed25519KeyPair
impl Sync for Ed25519KeyPair
impl Unpin for Ed25519KeyPair
impl UnwindSafe for Ed25519KeyPair
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