-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid extra allocation+sorting+deduping in
dkg::round1()
Currently `dkg::round1()` allocates a vector for the list of participants, and then sorts and dedupes this vector. It does so twice: once for calculating `max_signers`, once for calculating the `checksum`. This commit changes the behavior so that the vector allocation, sorting, and deduping happens only once and the result is used for both purposes.
- Loading branch information
Showing
1 changed file
with
68 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters