Trait KeyPair
pub trait KeyPair:
Sized
+ Debug
+ Send
+ Sync {
type PublicKey: AsRef<[u8]> + Debug + Clone + Send + Sync;
// Required method
fn public_key(&self) -> &Self::PublicKey;
}Available on crate features
aws-lc and crypto only.Expand description
Key pairs for signing messages (private key and public key).
Required Associated Types§
Required Methods§
fn public_key(&self) -> &Self::PublicKey
fn public_key(&self) -> &Self::PublicKey
The public key for the key pair.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".