Add abstraction for the embedded elliptic curve keys

It's minimal but still pleasant.
This commit is contained in:
Luke Parker
2025-09-02 10:40:57 -04:00
parent 72fefb3d85
commit 74bad049a7
17 changed files with 286 additions and 228 deletions

View File

@@ -44,7 +44,8 @@ pub(crate) trait SessionsStorage: AllocationsStorage {
///
/// This is opaque and to be exclusively read/write by `Sessions`.
// The value is how many key shares the validator has.
type SelectedValidators: StorageMap<SelectedValidatorsKey, u64> + StoragePrefixedMap<u64>;
type SelectedValidators: StorageMap<SelectedValidatorsKey, u64, Query = Option<u64>>
+ StoragePrefixedMap<u64>;
/// The total allocated stake for a network.
///