pub struct Ed25519Signer { /* private fields */ }Expand description
A local Ed25519 signer: a SigningKey (ZeroizeOnDrop) plus its key id.
Implementations§
Source§impl Ed25519Signer
impl Ed25519Signer
Sourcepub fn from_secret_bytes(key_id: KeyId, secret: &Zeroizing<[u8; 32]>) -> Self
pub fn from_secret_bytes(key_id: KeyId, secret: &Zeroizing<[u8; 32]>) -> Self
Build a signer from the 32 secret seed bytes.
Sourcepub fn public_key_bytes(&self) -> [u8; 32]
pub fn public_key_bytes(&self) -> [u8; 32]
The Ed25519 public key bytes for this signer.
Trait Implementations§
Source§impl Signer for Ed25519Signer
impl Signer for Ed25519Signer
Auto Trait Implementations§
impl Freeze for Ed25519Signer
impl RefUnwindSafe for Ed25519Signer
impl Send for Ed25519Signer
impl Sync for Ed25519Signer
impl Unpin for Ed25519Signer
impl UnsafeUnpin 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