pub struct SigningKey(/* private fields */);Expand description
An Ed25519 signing key.
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn from_openssh(text: &str) -> Result<Self, KeyError>
pub fn from_openssh(text: &str) -> Result<Self, KeyError>
Parses an OpenSSH-format Ed25519 private key (the contents of the
file produced by ssh-keygen -t ed25519).
Sourcepub fn verifying_key(&self) -> VerifyingKey
pub fn verifying_key(&self) -> VerifyingKey
Returns the corresponding VerifyingKey.
Sourcepub fn sign(&self, digest: &ContentHash) -> Signature
pub fn sign(&self, digest: &ContentHash) -> Signature
Signs the raw 32-byte content digest of a ContentHash.
Trait Implementations§
Source§impl Clone for SigningKey
impl Clone for SigningKey
Source§fn clone(&self) -> SigningKey
fn clone(&self) -> SigningKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SigningKey
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnsafeUnpin for SigningKey
impl UnwindSafe for SigningKey
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