pub struct EddsaSigner<'a> { /* private fields */ }
Available on crate feature
eddsa
only.Expand description
Create a signer for EdDSA signatures.
Implementations§
Source§impl<'a> EddsaSigner<'a>
impl<'a> EddsaSigner<'a>
Sourcepub fn new(signing_key: Cow<'a, SigningKey>) -> Self
pub fn new(signing_key: Cow<'a, SigningKey>) -> Self
Create a new signer.
Sourcepub fn from_bytes(signing_key: &SecretKey) -> SigningKey
pub fn from_bytes(signing_key: &SecretKey) -> SigningKey
Initialize a signing key from a byte array.
Sourcepub fn random() -> SigningKey
pub fn random() -> SigningKey
Generate a random private signing key.
Sourcepub fn verifying_key(&self) -> &VerifyingKey
pub fn verifying_key(&self) -> &VerifyingKey
Verifying key for this signer.
Auto Trait Implementations§
impl<'a> Freeze for EddsaSigner<'a>
impl<'a> RefUnwindSafe for EddsaSigner<'a>
impl<'a> Send for EddsaSigner<'a>
impl<'a> Sync for EddsaSigner<'a>
impl<'a> Unpin for EddsaSigner<'a>
impl<'a> UnwindSafe for EddsaSigner<'a>
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