pub trait KeygenSetupMessage: ProtocolParticipant {
// Required methods
fn threshold(&self) -> u8;
fn derive_key_id(&self, public_key: &[u8]) -> [u8; 32];
// Provided methods
fn participant_rank(&self, _party_index: usize) -> u8 { ... }
fn keyshare_extra(&self) -> &[u8] ⓘ { ... }
}
Expand description
A setup message for keygen::run()
Required Methods§
Sourcefn derive_key_id(&self, public_key: &[u8]) -> [u8; 32]
fn derive_key_id(&self, public_key: &[u8]) -> [u8; 32]
Derive key_id from a public_key.
Provided Methods§
Sourcefn participant_rank(&self, _party_index: usize) -> u8
fn participant_rank(&self, _party_index: usize) -> u8
Return a rank of a participant with given index. May panic is index is out of range.
Additional data to amend into the Keyshare.