gate libsecp256k1 upgrade to v0.5.0

This commit is contained in:
Trent Nelson
2021-07-13 22:22:35 -06:00
committed by mergify[bot]
parent 3a85b77bb5
commit abe5a0a349
4 changed files with 33 additions and 12 deletions

View File

@ -105,7 +105,6 @@ pub fn secp256k1_recover(
.map_err(|_| Secp256k1RecoverError::InvalidRecoveryId)?;
let signature = libsecp256k1::Signature::parse_standard_slice(signature)
.map_err(|_| Secp256k1RecoverError::InvalidSignature)?;
let secp256k1_key = libsecp256k1::recover(&message, &signature, &recovery_id)
.map_err(|_| Secp256k1RecoverError::InvalidSignature)?;
Ok(Secp256k1Pubkey::new(&secp256k1_key.serialize()[1..65]))