Skip to content

Commit

Permalink
fixup! deps: switch to use libseck256k1 to k256
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 committed Oct 3, 2023
1 parent 770a238 commit a345e76
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions core/src/types/key/secp256k1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ impl From<&PublicKey> for EthAddress {
use tiny_keccak::Hasher;

let mut hasher = tiny_keccak::Keccak::v256();
// We're removing the first byte with
// `libsecp256k1::util::TAG_PUBKEY_FULL`
let pk_bytes = &pk.0.to_encoded_point(false).to_bytes()[1..];
hasher.update(pk_bytes);
let mut output = [0_u8; 32];
Expand Down

0 comments on commit a345e76

Please sign in to comment.