pub trait PublicKey: Sealed + Sized {
type Private: PrivateKey<Public = Self>;
// Provided method
fn is_valid<S: Signature<PrivateKey = Self::Private>>(
&self,
message: &[u8],
signature: &S
) -> bool { ... }
}
Expand description
The public component of a public/private key pair.
Required Associated Types§
sourcetype Private: PrivateKey<Public = Self>
type Private: PrivateKey<Public = Self>
The type of the private component.
Provided Methods§
Object Safety§
This trait is not object safe.