diff --git a/frame/support/Cargo.toml b/frame/support/Cargo.toml index be9cb1f1bf316..1771ec1a6647e 100644 --- a/frame/support/Cargo.toml +++ b/frame/support/Cargo.toml @@ -37,7 +37,7 @@ impl-trait-for-tuples = "0.2.2" smallvec = "1.8.0" log = { version = "0.4.17", default-features = false } sp-core-hashing-proc-macro = { version = "5.0.0", path = "../../primitives/core/hashing/proc-macro" } -k256 = { version = "0.10.4", default-features = false, features = ["ecdsa"] } +k256 = { version = "0.11.6", default-features = false, features = ["ecdsa"] } [dev-dependencies] serde_json = "1.0.85" diff --git a/frame/support/src/crypto/ecdsa.rs b/frame/support/src/crypto/ecdsa.rs index a4a04acabe1df..add55eba10eb1 100644 --- a/frame/support/src/crypto/ecdsa.rs +++ b/frame/support/src/crypto/ecdsa.rs @@ -41,7 +41,7 @@ impl ECDSAExt for Public { let uncompressed = pub_key.to_encoded_point(false); // convert to ETH address <[u8; 20]>::try_from( - sp_io::hashing::keccak_256(&uncompressed.as_bytes()[1..])[12..].as_ref(), + sp_io::hashing::keccak_256(uncompressed.as_bytes())[12..].as_ref(), ) .map_err(drop) })