Skip to content

Commit

Permalink
bump: secp256k1 from 0.27 to 0.28 (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita authored Oct 18, 2023
1 parent deb0a11 commit 2059232
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/precompile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ c-kzg = { version = "0.1.1", default-features = false, optional = true }

# ecRecover precompile
k256 = { version = "0.13", default-features = false, features = ["ecdsa"] }
secp256k1 = { version = "0.27.0", default-features = false, features = [
secp256k1 = { version = "0.28.0", default-features = false, features = [
"alloc",
"recovery",
], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/precompile/src/secp256k1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ mod secp256k1 {
RecoverableSignature::from_compact(&sig[0..64], RecoveryId::from_i32(sig[64] as i32)?)?;

let secp = Secp256k1::new();
let public = secp.recover_ecdsa(&Message::from_slice(&msg[..32])?, &sig)?;
let public = secp.recover_ecdsa(&Message::from_digest_slice(&msg[..32])?, &sig)?;

let mut hash = keccak256(&public.serialize_uncompressed()[1..]).0;
hash[..12].fill(0);
Expand Down

0 comments on commit 2059232

Please sign in to comment.