poanetwork / hbbft

An implementation of the paper "Honey Badger of BFT Protocols" in Rust. This is a modular library of consensus.
Other
356 stars 96 forks source link

Added accessor to "our_id" for SyncKeyGen #428

Closed dforsten closed 4 years ago

dforsten commented 4 years ago

When gathering Part and Ack messages I repeatedly ran into the situation where I needed to access the "sender" with the messages returned by handle_part() and handle_ack(). Without the ability to query the "our_id" member of SyncKeyGen directly that information had to be tediously tracked along with the collection of SyncKeyGen instances, complicating the code unnecessarily.