Trait sui_types::crypto::SigningKey
pub trait SigningKey: ToFromBytes + Serialize + DeserializeOwned + Send + Sync + 'static {
type PubKey: VerifyingKey<PrivKey = Self>;
type Sig: Authenticator<PrivKey = Self>;
const LENGTH: usize;
}
Expand description
Trait impl’d by private (secret) keys in asymmetric cryptography.
The trait bounds are implemented so as to be symmetric and equivalent to the ones on its associated types for public key and signature material.
Required Associated Types§
type PubKey: VerifyingKey<PrivKey = Self>
type Sig: Authenticator<PrivKey = Self>
Required Associated Constants§
Object Safety§
This trait is not object safe.