generated from martinthomson/internet-draft-template
-
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.
Encode integer as bit vector representation
Add class methods on "Field" to encode integer as bit vector representation, as a vector of field elements, and vice versa, because it is a common functionality used by both Prio3Sum and Prio3SumVec, and increases readability. The class methods are aligned with libprio-rs implementations: https://github.com/divviup/libprio-rs/blob/release/0.14/src/field.rs#L232-L267
- Loading branch information
1 parent
d144076
commit 510c00c
Showing
3 changed files
with
103 additions
and
33 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
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