Update the coordinator binary for the new DKG

This does not yet update any tests.
This commit is contained in:
Luke Parker
2024-08-04 04:48:12 -04:00
parent 58a435d4e9
commit 54eefbde0c
17 changed files with 401 additions and 952 deletions

View File

@@ -108,6 +108,21 @@ impl<'a> SeraiValidatorSets<'a> {
self.0.storage(PALLET, "CurrentSession", network).await
}
pub async fn embedded_elliptic_curve_key(
&self,
validator: Public,
embedded_elliptic_curve: EmbeddedEllipticCurve,
) -> Result<Option<Vec<u8>>, SeraiError> {
self
.0
.storage(
PALLET,
"EmbeddedEllipticCurveKeys",
(sp_core::hashing::blake2_128(&validator.encode()), validator, embedded_elliptic_curve),
)
.await
}
pub async fn participants(
&self,
network: NetworkId,