mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
sp-core-hashing: use the digest::Digest trait to handle the hashing function uniformly (#10835)
* sp-core-hashing: use sha3 instead of tiny-keccak Signed-off-by: koushiro <koushiro.cqx@gmail.com> * use blake2 instead of blake2-rfc Signed-off-by: koushiro <koushiro.cqx@gmail.com> * improve som hashing of sp-core and sp-api-proc-macro Signed-off-by: koushiro <koushiro.cqx@gmail.com> * Some nits Signed-off-by: koushiro <koushiro.cqx@gmail.com> * cargo fmt Signed-off-by: koushiro <koushiro.cqx@gmail.com>
This commit is contained in:
@@ -16,16 +16,18 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
sp-std = { version = "4.0.0", default-features = false, path = "../../std" }
|
||||
byteorder = { version = "1.3.2", default-features = false }
|
||||
|
||||
blake2-rfc = { version = "0.2.18", default-features = false }
|
||||
tiny-keccak = { version = "2.0.1", features = ["keccak"] }
|
||||
sha2 = { version = "0.10.0", default-features = false }
|
||||
twox-hash = { version = "1.6.2", default-features = false }
|
||||
digest = { version = "0.10.2", default-features = false }
|
||||
blake2 = { version = "0.10.2", default-features = false }
|
||||
sha2 = { version = "0.10.1", default-features = false }
|
||||
sha3 = { version = "0.10.0", default-features = false }
|
||||
twox-hash = { version = "1.6.2", default-features = false, features = ["digest_0_10"] }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"blake2-rfc/std",
|
||||
"sha2/std",
|
||||
"sp-std/std",
|
||||
"blake2/std",
|
||||
"sha2/std",
|
||||
"sha3/std",
|
||||
"twox-hash/std",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user