Struct vodozemac::Ed25519Keypair
source · pub struct Ed25519Keypair { /* private fields */ }
Expand description
A struct collecting both a public, and a secret, Ed25519 key.
Implementations§
source§impl Ed25519Keypair
impl Ed25519Keypair
sourcepub const fn public_key(&self) -> Ed25519PublicKey
pub const fn public_key(&self) -> Ed25519PublicKey
Get the public Ed25519 key of this keypair.
sourcepub fn sign(&self, message: &[u8]) -> Ed25519Signature
pub fn sign(&self, message: &[u8]) -> Ed25519Signature
Sign the given message with our secret key.
Trait Implementations§
source§impl Clone for Ed25519Keypair
impl Clone for Ed25519Keypair
source§impl Default for Ed25519Keypair
impl Default for Ed25519Keypair
source§impl<'de> Deserialize<'de> for Ed25519Keypair
impl<'de> Deserialize<'de> for Ed25519Keypair
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)