pub trait Keypair<S: Signature>: AsRef<Self::VerifyingKey> {
type VerifyingKey;
// Provided method
fn verifying_key(&self) -> &Self::VerifyingKey { ... }
}
Expand description
Signing keypair with an associated verifying key.
This represents a type which holds both a signing key and a verifying key.
Required Associated Types§
Sourcetype VerifyingKey
type VerifyingKey
Verifying key type for this keypair.
Provided Methods§
Sourcefn verifying_key(&self) -> &Self::VerifyingKey
fn verifying_key(&self) -> &Self::VerifyingKey
Get the verifying key which can verify signatures produced by the signing key portion of this keypair.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.