pub struct Ed25519Signer { /* private fields */ }Expand description
Signs records with an Ed25519 key the host supplies. Key generation and storage are host concerns; the crate only consumes the 32 secret bytes.
Implementations§
Source§impl Ed25519Signer
impl Ed25519Signer
Sourcepub fn from_secret_bytes(secret: &[u8; 32]) -> Self
pub fn from_secret_bytes(secret: &[u8; 32]) -> Self
Build a signer from 32 secret key bytes (RFC 8032 seed).
Sourcepub fn public_key(&self) -> PublicKeyBytes
pub fn public_key(&self) -> PublicKeyBytes
The signer’s public key bytes.
Sourcepub fn public_key_hex(&self) -> String
pub fn public_key_hex(&self) -> String
The signer’s public key as lowercase hex - the Signature.key_id
this signer produces.
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