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 authored and GitHub committed 2023-07-17 18:41:41 +00:00
1 parent c761d4c39e
commit d6d9bd9ea3
28 files changed
+351 -71

No files matched your search

@@ -196,9 +196,7 @@ pub trait Backend<Block: BlockT>:
base_hash: Block::Hash,
import_lock: &RwLock<()>,
) -> Result<Option<Block::Hash>> {
let Some(base_header) = self.header(base_hash)? else {
return Ok(None)
};
let Some(base_header) = self.header(base_hash)? else { return Ok(None) };
let leaves = {
// ensure no blocks are imported during this code block.