pub struct Ed25519Signer { /* private fields */ }Expand description
Ed25519 signer using ed25519-dalek (for test vector generation)
The underlying SigningKey implements ZeroizeOnDrop (when the zeroize feature
is enabled on ed25519-dalek), which securely clears the private key from memory
when the signer is dropped.
Implementations§
Source§impl Ed25519Signer
impl Ed25519Signer
Sourcepub fn from_bytes(bytes: &[u8]) -> CryptoResult<Self>
pub fn from_bytes(bytes: &[u8]) -> CryptoResult<Self>
Create a new signer from raw private key bytes (32 bytes)
Sourcepub fn verifying_key(&self) -> Ed25519Verifier
pub fn verifying_key(&self) -> Ed25519Verifier
Get the verifying (public) key
Sourcepub fn public_key_bytes(&self) -> [u8; 32]
pub fn public_key_bytes(&self) -> [u8; 32]
Get the public key bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ed25519Signer
impl RefUnwindSafe for Ed25519Signer
impl Send for Ed25519Signer
impl Sync for Ed25519Signer
impl Unpin for Ed25519Signer
impl UnwindSafe for Ed25519Signer
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