[−][src]Function sp_io::crypto::secp256k1_ecdsa_recover
pub fn secp256k1_ecdsa_recover(
sig: &[u8; 65],
msg: &[u8; 32]
) -> Result<[u8; 64], EcdsaVerifyError>
Verify and recover a SECP256k1 ECDSA signature.
sig
is passed in RSV format. V should be either 0/1 or 27/28. ReturnsErr
if the signature is bad, otherwise the 64-byte pubkey (doesn't include the 0x04 prefix).