From 2f12266526da6c162f9bcb1eea6f2cd0baaf6827 Mon Sep 17 00:00:00 2001 From: davidf Date: Mon, 14 Oct 2019 22:30:01 +0200 Subject: [PATCH] Added accessor to "our_id" for SyncKeyGen --- src/sync_key_gen.rs | 5 +++++ 1 file changed, 5 insertions(+) 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