pub trait QuorumChangeSetupMessage<KS, PK>: ProtocolParticipant {
// Required methods
fn old_keyshare(&self) -> Option<&KS>;
fn new_threshold(&self) -> u8;
fn expected_public_key(&self) -> &PK;
fn old_party_indices(&self) -> &[usize];
fn new_party_indices(&self) -> &[usize];
fn derive_key_id(&self, public_key: &[u8]) -> [u8; 32];
// Provided methods
fn new_participant_rank(&self, _party_id: u8) -> u8 { ... }
fn new_party_id(&self, index: usize) -> Option<u8> { ... }
fn keyshare_extra(&self) -> &[u8] ⓘ { ... }
}
Expand description
A setup message for quorum_change::run()
Required Methods§
A shared reference to a Keyshare.
Sourcefn new_threshold(&self) -> u8
fn new_threshold(&self) -> u8
New threshold parameter.
Sourcefn expected_public_key(&self) -> &PK
fn expected_public_key(&self) -> &PK
Expected public key.
Sourcefn old_party_indices(&self) -> &[usize]
fn old_party_indices(&self) -> &[usize]
list of old party indices
Sourcefn new_party_indices(&self) -> &[usize]
fn new_party_indices(&self) -> &[usize]
List of indices of new parties in a list of protocol participants. Order of indices defines assignment of party-id to new key shares.
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 new_participant_rank(&self, _party_id: u8) -> u8
fn new_participant_rank(&self, _party_id: u8) -> u8
New participant rank. Panics is party_id
is out of range.
Sourcefn new_party_id(&self, index: usize) -> Option<u8>
fn new_party_id(&self, index: usize) -> Option<u8>
return new_party_id by party_index
Additional data to incorpatate into resulting Keyshare.