39 releases

0.10.5 Aug 9, 2022
0.10.4 Jul 21, 2022
0.10.3 Jun 14, 2022
0.10.0 Mar 22, 2022
0.2.2 Nov 18, 2020
Download history 22/week @ 2023-06-02 43/week @ 2023-06-09 65/week @ 2023-06-16 61/week @ 2023-06-23 30/week @ 2023-06-30 683/week @ 2023-07-07 21/week @ 2023-07-14 19/week @ 2023-07-21 12/week @ 2023-07-28 10/week @ 2023-08-04 52/week @ 2023-08-11 56/week @ 2023-08-18 171/week @ 2023-08-25 52/week @ 2023-09-01 11/week @ 2023-09-08 9/week @ 2023-09-15

261 downloads per month
Used in 3 crates


1.5K SLoC


Implementation of a BLS DKG mechanism, requires signing key, encryption key and SocketAddr of participants.

Based on the excellent description as found here. This implementation forces participation and honesty. Therefore it can be used in hostile and friendly environments where m must be <=n. The participant IDs must be sortable to allow all participants to select the same (threshold + 1) t+1 participants in key generation.

The notion is that all participants (p) agree on m (members) of n (total number of members). The participants must be able to renew their encryption key. This will be used in a complain + justification message. That message will prove a participant sent encrypted junk to another member. The member justifying a complaint will have to expose their encryption keypair and also renew it in a single message. This will require a sign(complaint, justification, new encrypt_public_key) message. At this time the DKG is aborted and the complainer or the participant who sent the message will be excluded in the next round. Prior to the next round happening a new participant can be added to maintain a constant number of participants.

This algorithm is synchronous and will require participants are disqualified for sending bad data or being non responsive. The latter is arbitrarily set in this crate, but it can be set by users of the crate.

Documentation MaidSafe website Safe Dev Forum Safe Network Forum


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.


~177K SLoC