Keystore overhaul (#13615)

* Remove 'supported_keys' 'sign_with_any' and 'sign_with_all' from keystore trait

* Remove the aync keystore

* Renaming:
- SyncCryptoStore -> Keystore
- SyncCryptoStorePtr -> KeystorePtr
- KeyStore -> MemoryKeystore

* Fix authority discovery worker and tests

* Rename 'insert_unknown' to 'insert'

* Remove leftover
This commit is contained in:
Davide Galassi authored and GitHub committed 2023-03-17 11:24:14 +00:00
1 parent 91bb2d29ca
commit f110941b7f
49 files changed
+317 -820

No files matched your search

@@ -383,7 +383,7 @@ use sp_core::{
};
use sp_externalities::Extensions;
use sp_inherents::InherentData;
use sp_keystore::{testing::KeyStore, KeystoreExt};
use sp_keystore::{testing::MemoryKeystore, KeystoreExt};
use sp_runtime::{
traits::{BlakeTwo256, Block as BlockT, NumberFor},
DeserializeOwned, Digest,
@@ -820,7 +820,7 @@ pub(crate) fn full_extensions() -> Extensions {
let (pool, _pool_state) = TestTransactionPoolExt::new();
extensions.register(OffchainDbExt::new(offchain.clone()));
extensions.register(OffchainWorkerExt::new(offchain));
extensions.register(KeystoreExt(std::sync::Arc::new(KeyStore::new())));
extensions.register(KeystoreExt(std::sync::Arc::new(MemoryKeystore::new())));
extensions.register(TransactionPoolExt::new(pool));
extensions