mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 18:41:01 +00:00
Use array-bytes for All Array/Bytes/Hex Operations (#12190)
* Use `array-bytes` for All Array/Bytes/Hex Operations Signed-off-by: Xavier Lau <xavier@inv.cafe> * Reorder * Self Review * Format * Fix Tests * Bump `array-bytes` * Optimize large test res Signed-off-by: Xavier Lau <xavier@inv.cafe> Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -47,13 +47,13 @@ thiserror = { version = "1.0.30", optional = true }
|
||||
bitflags = "1.3"
|
||||
|
||||
# full crypto
|
||||
array-bytes = { version = "4.1", optional = true }
|
||||
ed25519-zebra = { version = "3.0.0", default-features = false, optional = true}
|
||||
blake2 = { version = "0.10.4", default-features = false, optional = true }
|
||||
schnorrkel = { version = "0.9.1", features = [
|
||||
"preaudit_deprecated",
|
||||
"u64_backend",
|
||||
], default-features = false, optional = true }
|
||||
hex = { version = "0.4", default-features = false, optional = true }
|
||||
libsecp256k1 = { version = "0.7", default-features = false, features = ["static-context"], optional = true }
|
||||
merlin = { version = "2.0", default-features = false, optional = true }
|
||||
secp256k1 = { version = "0.24.0", default-features = false, features = ["recovery", "alloc"], optional = true }
|
||||
@@ -63,7 +63,6 @@ sp-runtime-interface = { version = "6.0.0", default-features = false, path = "..
|
||||
|
||||
[dev-dependencies]
|
||||
sp-serializer = { version = "4.0.0-dev", path = "../serializer" }
|
||||
hex-literal = "0.3.4"
|
||||
rand = "0.7.2"
|
||||
criterion = "0.3.3"
|
||||
serde_json = "1.0"
|
||||
@@ -99,8 +98,8 @@ std = [
|
||||
"sp-std/std",
|
||||
"serde",
|
||||
"blake2/std",
|
||||
"array-bytes",
|
||||
"ed25519-zebra",
|
||||
"hex/std",
|
||||
"base58",
|
||||
"substrate-bip39",
|
||||
"tiny-bip39",
|
||||
@@ -129,10 +128,10 @@ std = [
|
||||
# or Intel SGX.
|
||||
# For the regular wasm runtime builds this should not be used.
|
||||
full_crypto = [
|
||||
"array-bytes",
|
||||
"ed25519-zebra",
|
||||
"blake2",
|
||||
"schnorrkel",
|
||||
"hex",
|
||||
"libsecp256k1",
|
||||
"secp256k1",
|
||||
"sp-core-hashing",
|
||||
|
||||
Reference in New Issue
Block a user