Function sp_io::crypto::secp256k1_ecdsa_recover_compressed [−][src]
pub fn secp256k1_ecdsa_recover_compressed(
sig: &[u8; 65],
msg: &[u8; 32]
) -> Result<[u8; 33], EcdsaVerifyError>
Expand description
Verify and recover a SECP256k1 ECDSA signature.
sigis passed in RSV format. V should be either0/1or27/28.msgis the blake2-256 hash of the message.
Returns Err if the signature is bad, otherwise the 33-byte compressed pubkey.