pub fn verify_signature(&self, message: &[u8], signature: &[u8]) -> bool {
        if let Ok(sig) = Signature::try_from(signature) {
            let vk = VerifyingKey::from(self.public.as_affine());
            vk.verify(message, &sig).is_ok()
        } else {
            false
        }
    }
/// Verify a signature with the public key
Verify a signature with the public key
Verify a signature with the public key
pub fn verify_signature(&self, message: &[u8], signature: &[u8]) -> bool {
        if let Ok(sig) = Signature::try_from(signature) {
            let vk = VerifyingKey::from(self.public.as_affine());
            vk.verify(message, &sig).is_ok()
        } else {
            false
        }
    }
pub fn verify_signature ( & self , message : & [ u8 ] , signature : & [ u8 ] ) -> bool { if let Ok ( sig ) = Signature :: try_from ( signature ) { let vk = VerifyingKey :: from ( self . public . as_affine ( ) ) ; vk . verify ( message , & sig ) . is_ok ( ) } else { false } }
Verify a signature with the public key
Verify a signature with the public key
&self
message
&[u8]
signature
&[u8]