diff --git a/src/sync_key_gen.rs b/src/sync_key_gen.rs index d07e10e..9b45810 100644 --- a/src/sync_key_gen.rs +++ b/src/sync_key_gen.rs @@ -425,6 +425,11 @@ impl SyncKeyGen { 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 { &self.pub_keys