pub fn verify_signature(signature: &Signature, cbor: &Vec<u8>) -> Result<bool, SignerError> {
    // TODO: pass signature.bytes instead of the full signature
    let result = match signature.sig_type {
        SignatureType::Secp256k1 => verify_secp256k1_signature(signature, cbor)?,
        SignatureType::BLS => verify_bls_signature(signature, cbor)?,
    };

    Ok(result)
}
/// Verify a signature. Return a boolean.
///
/// # Arguments
///
/// * `signature` - RSV format signature or BLS signature
/// * `cbor_buffer` - the CBOR transaction to verify the signature against
///
Verify a signature. Return a boolean.
Verify a signature . Return a boolean .
pub fn verify_signature(signature: &Signature, cbor: &Vec<u8>) -> Result<bool, SignerError> {
    // TODO: pass signature.bytes instead of the full signature
    let result = match signature.sig_type {
        SignatureType::Secp256k1 => verify_secp256k1_signature(signature, cbor)?,
        SignatureType::BLS => verify_bls_signature(signature, cbor)?,
    };
    Ok(result)
}
pub fn verify_signature ( signature : & Signature , cbor : & Vec < u8 > ) -> Result < bool , SignerError > { // TODO: pass signature.bytes instead of the full signature let result = match signature . sig_type { SignatureType :: Secp256k1 => verify_secp256k1_signature ( signature , cbor ) ? , SignatureType :: BLS => verify_bls_signature ( signature , cbor ) ? , } ; Ok ( result ) }
Verify a signature.
Verify a signature .
signature
&Signature
cbor
&Vec<u8>
signature
&Signature
cbor
&Vec<u8>