Remove secp256k1 from WASM build (#5187)

* Remove `secp256k1` from WASM build

* Bring back full public key parse on native

* Add extra method to create from a full public key
This commit is contained in:
Bastian Köcher
2020-03-10 14:10:57 +01:00
committed by GitHub
parent d1cac6cd19
commit 57ecc10cf1
2 changed files with 18 additions and 8 deletions
+2 -1
View File
@@ -33,7 +33,6 @@ parking_lot = { version = "0.10.0", optional = true }
sp-debug-derive = { version = "2.0.0-alpha.2", path = "../debug-derive" }
sp-externalities = { version = "0.8.0-alpha.2", optional = true, path = "../externalities" }
sp-storage = { version = "2.0.0-alpha.2", default-features = false, path = "../storage" }
libsecp256k1 = { version = "0.3.2", default-features = false, features = ["hmac"] }
parity-util-mem = { version = "0.5.1", default-features = false, features = ["primitive-types"] }
# full crypto
@@ -44,6 +43,7 @@ schnorrkel = { version = "0.8.5", features = ["preaudit_deprecated", "u64_backen
sha2 = { version = "0.8.0", default-features = false, optional = true }
hex = { version = "0.4", default-features = false, optional = true }
twox-hash = { version = "1.5.0", default-features = false, optional = true }
libsecp256k1 = { version = "0.3.2", default-features = false, features = ["hmac"], optional = true }
sp-runtime-interface = { version = "2.0.0-alpha.2", default-features = false, path = "../runtime-interface" }
@@ -116,5 +116,6 @@ full_crypto = [
"hex",
"sha2",
"twox-hash",
"libsecp256k1",
"sp-runtime-interface/disable_target_static_assertions",
]