mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
update tiny-keccak (#4093)
* update tiny-keccak * fix * Update Cargo.toml * update Cargo.lock * remove keccak-hasher
This commit is contained in:
@@ -10,7 +10,6 @@ hash-db = { version = "0.15.2", default-features = false }
|
||||
primitives = { package = "substrate-primitives", path = "../primitives", default-features = false }
|
||||
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
|
||||
libsecp256k1 = { version = "0.3.0", optional = true }
|
||||
tiny-keccak = { version = "1.5.0", optional = true }
|
||||
substrate-state-machine = { path = "../state-machine", optional = true }
|
||||
runtime-interface = { package = "substrate-runtime-interface", path = "../runtime-interface", default-features = false }
|
||||
trie = { package = "substrate-trie", path = "../trie", optional = true }
|
||||
@@ -27,7 +26,6 @@ std = [
|
||||
"trie",
|
||||
"substrate-state-machine",
|
||||
"libsecp256k1",
|
||||
"tiny-keccak",
|
||||
"runtime-interface/std",
|
||||
"externalities",
|
||||
"log",
|
||||
|
||||
@@ -376,7 +376,7 @@ pub trait Crypto {
|
||||
pub trait Hashing {
|
||||
/// Conduct a 256-bit Keccak hash.
|
||||
fn keccak_256(data: &[u8]) -> [u8; 32] {
|
||||
tiny_keccak::keccak256(data)
|
||||
primitives::hashing::keccak_256(data)
|
||||
}
|
||||
|
||||
/// Conduct a 128-bit Blake2 hash.
|
||||
|
||||
Reference in New Issue
Block a user