mirror of https://github.com/poanetwork/hbbft.git
Added accessor to "our_id" for SyncKeyGen
This commit is contained in:
parent
9d6b851466
commit
2f12266526
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue