Skip to content

Commit

Permalink
scrypto 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz2891 committed Nov 28, 2024
1 parent c2b56d4 commit ea7fba4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/crypto/recover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,7 @@ pub(crate) mod crypto256 {
let signature = Secp256k1Signature::try_from(sig_vec.as_slice())
.unwrap_or_revert(|_| Error::CryptographicError(signature_bytes.len()));

let compressed_key: [u8; 33] =
CryptoUtils::secp256k1_ecdsa_verify_and_key_recover(hash, signature).0;
let pub_key = PublicKey::from_slice(&compressed_key)
.unwrap_or_revert(|_| Error::CryptographicError(compressed_key.len()));

pub_key.serialize_uncompressed()
CryptoUtils::secp256k1_ecdsa_verify_and_key_recover_uncompressed(hash, signature).0
}
}

Expand Down

0 comments on commit ea7fba4

Please sign in to comment.