[−][src]Trait dup_crypto::keys::KeyPair
Define the operations that can be performed on a cryptographic key pair.
Associated Types
Loading content...Required methods
fn generate_signator(&self) -> Self::Signator
Generate signator.
fn public_key(&self) -> <Self::Signator as Signator>::PublicKey
Get PublicKey
fn seed(&self) -> &Seed32
Get Seed32
fn verify(
&self,
message: &[u8],
signature: &<Self::Signator as Signator>::Signature
) -> Result<(), SigError>
&self,
message: &[u8],
signature: &<Self::Signator as Signator>::Signature
) -> Result<(), SigError>
Verify a signature with public key.