-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check DKG threshold in Signer state machine (#9)
* add signer_key_ids to PublicKeys; pass dkg_threshold to signer state machine; check dkg_threshold in dkg_ended * fmt fixes * don't use array access; add explicit integer cast * add test for dkg threshold * use saturating_add when calculating num_dkg_keys * assert is_empty rather than len of 0 * remove key_ids from DkgPrivateBegin and DkgEndBegin * put key_ids back into DkgPrivateBegin and DkgEndBegin but keep them deprecated * use signer_ids_set when checking public and private shares; use let/else do reduce indentation and put error case first * remove assert; check thresholds and return error if invalid in signer ctor * filter signer_id_set for only valid ids
- Loading branch information
Showing
5 changed files
with
234 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
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
Oops, something went wrong.