Encryption support for the statement store (#14440)

* Added ECIES encryption

* tweaks

* fmt

* Make clippy happy

* Use local keystore

* qed
This commit is contained in:
Arkadiy Paronyan
2023-07-17 20:41:41 +02:00
committed by GitHub
parent c761d4c39e
commit d6d9bd9ea3
28 changed files with 351 additions and 71 deletions
@@ -24,6 +24,15 @@ sp-runtime-interface = { version = "17.0.0", default-features = false, path = ".
sp-externalities = { version = "0.19.0", default-features = false, path = "../externalities" }
thiserror = { version = "1.0", optional = true }
# ECIES dependencies
ed25519-dalek = { version = "1.0", optional = true }
x25519-dalek = { version = "2.0.0-pre.1", optional = true }
curve25519-dalek = { version = "3.2", optional = true }
aes-gcm = { version = "0.10", optional = true }
hkdf = { version = "0.12.0", optional = true }
sha2 = { version = "0.10.0", optional = true }
rand = { version = "0.8.5", features = ["small_rng"], optional = true }
[features]
default = ["std"]
std = [
@@ -36,6 +45,14 @@ std = [
"sp-api/std",
"sp-application-crypto/std",
"thiserror",
"ed25519-dalek",
"x25519-dalek",
"curve25519-dalek",
"aes-gcm",
"hkdf",
"sha2",
"rand",
]
serde = [
"scale-info/serde",