mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 22:51:03 +00:00
Move cryptographic hashing procedures to crypto folder. (#2306)
Step towards https://github.com/paritytech/polkadot-sdk/issues/1975 As reported https://github.com/paritytech/polkadot-sdk/issues/1975#issuecomment-1774534225 I'd like to encapsulate crypto related stuff in a dedicated folder. Currently all cryptographic primitive wrappers are all sparsed in `substrate/core` which contains "misc core" stuff. To simplify the process, as the first step with this PR I propose to move the cryptographic hashing there. The `substrate/crypto` folder was already created to contains `ec-utils` crate. Notes: - rename `sp-core-hashing` to `sp-crypto-hashing` - rename `sp-core-hashing-proc-macro` to `sp-crypto-hashing-proc-macro` - As the crates name is changed I took the freedom to restart fresh from version 0.1.0 for both crates --------- Co-authored-by: Robert Hambrock <roberthambrock@gmail.com>
This commit is contained in:
@@ -53,7 +53,7 @@ libsecp256k1 = { version = "0.7", default-features = false, features = ["static-
|
||||
schnorrkel = { version = "0.11.4", features = ["preaudit_deprecated"], default-features = false }
|
||||
merlin = { version = "3.0", default-features = false }
|
||||
secp256k1 = { version = "0.28.0", default-features = false, features = ["alloc", "recovery"], optional = true }
|
||||
sp-core-hashing = { path = "hashing", default-features = false, optional = true }
|
||||
sp-crypto-hashing = { path = "../crypto/hashing", default-features = false, optional = true }
|
||||
sp-runtime-interface = { path = "../runtime-interface", default-features = false }
|
||||
|
||||
# bls crypto
|
||||
@@ -66,7 +66,6 @@ criterion = "0.4.0"
|
||||
serde_json = "1.0.111"
|
||||
lazy_static = "1.4.0"
|
||||
regex = "1.6.0"
|
||||
sp-core-hashing-proc-macro = { path = "hashing/proc-macro" }
|
||||
|
||||
[[bench]]
|
||||
name = "bench"
|
||||
@@ -110,7 +109,7 @@ std = [
|
||||
"secp256k1/std",
|
||||
"secrecy/alloc",
|
||||
"serde/std",
|
||||
"sp-core-hashing/std",
|
||||
"sp-crypto-hashing/std",
|
||||
"sp-debug-derive/std",
|
||||
"sp-externalities/std",
|
||||
"sp-runtime-interface/std",
|
||||
@@ -136,7 +135,7 @@ serde = [
|
||||
"primitive-types/serde_no_std",
|
||||
"scale-info/serde",
|
||||
"secrecy/alloc",
|
||||
"sp-core-hashing",
|
||||
"sp-crypto-hashing",
|
||||
"sp-storage/serde",
|
||||
]
|
||||
|
||||
@@ -149,7 +148,7 @@ full_crypto = [
|
||||
"ed25519-zebra",
|
||||
"libsecp256k1",
|
||||
"secp256k1",
|
||||
"sp-core-hashing",
|
||||
"sp-crypto-hashing",
|
||||
"sp-runtime-interface/disable_target_static_assertions",
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user