Added accessor to "our_id" for SyncKeyGen

This commit is contained in:
davidf 2019-10-14 22:30:01 +02:00 committed by Andreas Fackler
parent 9d6b851466
commit 2f12266526
1 changed files with 5 additions and 0 deletions

View File

@ -425,6 +425,11 @@ impl<N: NodeIdT, PK: PublicKey> SyncKeyGen<N, PK> {
Ok((key_gen, Some(Part(commit, rows))))
}
/// Returns the id of this node.
pub fn our_id(&self) -> &N {
&self.our_id
}
/// Returns the map of participating nodes and their public keys.
pub fn public_keys(&self) -> &PubKeyMap<N, PK> {
&self.pub_keys