pub trait Verifier {
type Signature: Signature;
// Required method
fn verify(
&self,
message: &[u8],
signature: &Self::Signature,
) -> AptosResult<()>;
}Expand description
A trait for types that can verify signatures.
Required Associated Types§
Required Methods§
Implementors§
Source§impl Verifier for Bls12381PublicKey
Available on crate feature bls only.
impl Verifier for Bls12381PublicKey
Available on crate feature
bls only.Source§impl Verifier for Ed25519PublicKey
Available on crate feature ed25519 only.
impl Verifier for Ed25519PublicKey
Available on crate feature
ed25519 only.type Signature = Ed25519Signature
Source§impl Verifier for MultiEd25519PublicKey
Available on crate feature ed25519 only.
impl Verifier for MultiEd25519PublicKey
Available on crate feature
ed25519 only.Source§impl Verifier for Secp256k1PublicKey
Available on crate feature secp256k1 only.
impl Verifier for Secp256k1PublicKey
Available on crate feature
secp256k1 only.Source§impl Verifier for Secp256r1PublicKey
Available on crate feature secp256r1 only.
impl Verifier for Secp256r1PublicKey
Available on crate feature
secp256r1 only.