Flatten the map of preprocesses/shares, send Participant index with DkgParticipation

This commit is contained in:
Luke Parker
2025-01-15 14:24:51 -05:00
parent 167826aa88
commit f36bbcba25
5 changed files with 74 additions and 61 deletions

View File

@@ -45,6 +45,9 @@ pub struct NewSetInformation {
/// The validators, with the amount of key shares they have.
pub validators: Vec<(SeraiAddress, u16)>,
/// The eVRF public keys.
///
/// This will have the necessary copies of the keys proper for each validator's weight,
/// accordingly syncing up with `participant_indexes`.
pub evrf_public_keys: Vec<([u8; 32], Vec<u8>)>,
/// The participant indexes, indexed by their validator.
#[borsh(skip)]