ssh_key

Trait SigningKey

source
pub trait SigningKey: Signer<Signature> {
    // Required method
    fn public_key(&self) -> KeyData;
}
Available on crate feature alloc only.
Expand description

Trait for signing keys which produce a Signature.

This trait is automatically impl’d for any types which impl the Signer trait for the SSH Signature type and also support a From conversion for public::KeyData.

Required Methods§

source

fn public_key(&self) -> KeyData

Get the public::KeyData for this signing key.

Implementors§

source§

impl<T> SigningKey for T
where T: Signer<Signature>, KeyData: for<'a> From<&'a T>,