pub trait VerificationAlgorithm: AsymmetricPublicKey {
    type Signature: AsRef<[u8]> + Clone;

    const SIGNATURE_SIZE: usize;
    const SIGNATURE_BECH32_HRP: &'static str;

    // Required methods
    fn verify_bytes(
        pubkey: &Self::Public,
        signature: &Self::Signature,
        msg: &[u8]
    ) -> Verification;
    fn signature_from_bytes(
        data: &[u8]
    ) -> Result<Self::Signature, SignatureError>;
}

Required Associated Types§

Required Associated Constants§

Required Methods§

source

fn verify_bytes( pubkey: &Self::Public, signature: &Self::Signature, msg: &[u8] ) -> Verification

source

fn signature_from_bytes(data: &[u8]) -> Result<Self::Signature, SignatureError>

Implementors§