Trait iota_types::crypto::VerifyingKey
pub trait VerifyingKey: Serialize + DeserializeOwned + Hash + Display + Eq + Ord + ToFromBytes + for<'a> From<&'a Self::PrivKey> + Send + Sync + 'static + Clone {
type PrivKey: SigningKey<PubKey = Self>;
type Sig: Authenticator<PubKey = Self>;
const LENGTH: usize;
// Required method
fn verify(
&self,
msg: &[u8],
signature: &Self::Sig,
) -> Result<(), FastCryptoError>;
}
Expand description
Trait impl’d by public keys in asymmetric cryptography.
The trait bounds are implemented so as to be symmetric and equivalent to the ones on its associated types for private and signature material.
Required Associated Types§
type PrivKey: SigningKey<PubKey = Self>
type Sig: Authenticator<PubKey = Self>
Required Associated Constants§
Required Methods§
Object Safety§
This trait is not object safe.