forked from dedis/kyber
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix storing by indices instead of sequentially (#25)
* Store shares and coeffs sequentially, not by indices Issues is that we can not guarantee the sequentiality of node indices so we have to refer to shares and coeffs by indices not in a sequential way otherwise it can lead to panics. * Check for duplicate indices in Config We should not accept any config that has a duplicate index in either list. Commit also adds a test for the case where indices are not sequential.
- Loading branch information
Showing
2 changed files
with
159 additions
and
6 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