#round-robin #key #public-key #vote #secret #gen


BRB Membership: Enables nodes to dynamically join and leave a BRB voting group

17 stable releases

1.4.1 Oct 10, 2022
1.4.0 Jan 4, 2022
1.2.0 Dec 29, 2021
1.0.10 Jun 14, 2021
1.0.4 Jan 20, 2021

#930 in Cryptography

Download history 10/week @ 2023-06-02 49/week @ 2023-06-16 39/week @ 2023-06-23 64/week @ 2023-06-30 14/week @ 2023-07-07 14/week @ 2023-07-14 29/week @ 2023-07-21 18/week @ 2023-07-28 15/week @ 2023-08-04 36/week @ 2023-08-11 22/week @ 2023-08-18 42/week @ 2023-08-25 40/week @ 2023-09-01 19/week @ 2023-09-08 16/week @ 2023-09-15

121 downloads per month
Used in 4 crates (via brb)


824 lines


MaidSafe website Safe Network Forum


This BRB Dynamic Membership module enables nodes to dynamically join and leave a BRB voting group.

Please see the brb crate.


Message Sequence Charts (MSC)

You will notice that after running cargo test, A collection of .msc files are generated..

These files show the progression of vote's as they are processed by the network. They can be rendered using the mscgen. For example the test_round_robin_split_vote test generates charts demonstrating how the network handles split votes from 1 through to 6 members, to render out a chart for the case where 2 members vote differently run:

cargo test # generates the *.msc files in the current directory.

mscgen -T png -i round_robin_split_vote_2.msc -o round_robin_split_vote_2.png

The rendered chart round_robin_split_vote_2.png will look something like the following:

round robin split vote with 2 members

Note that although the lines between network members are perfectly horizontal, this does not mean that the vote was sent and received instantly. When a network member receives a vote, it responds immediately with it's votes (if any) but the simulated network queues up these votes and delivers them deterministically. The horizontal lines show when a vote was finally delivered to it's destination and who it was from.


This Safe Network library is licensed under the BSD-3-Clause license.

See the LICENSE file for more details.


Want to contribute? Great 🎉

There are many ways to give back to the project, whether it be writing new code, fixing bugs, or just reporting errors. All forms of contributions are encouraged!

For instructions on how to contribute, see our Guide to contributing.


~170K SLoC