Skip to content

Commit

Permalink
Merge pull request #16 from cjpatton/more-fields
Browse files Browse the repository at this point in the history
finite_field: Define trait FieldElement and add more fields
  • Loading branch information
tgeoghegan authored Mar 31, 2021
2 parents 56c194a + 42e8e2a commit c5e0a4d
Show file tree
Hide file tree
Showing 6 changed files with 406 additions and 235 deletions.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Client {
pub fn new(dimension: usize, public_key1: PublicKey, public_key2: PublicKey) -> Option<Self> {
let n = (dimension + 1).next_power_of_two();

if 2 * n > N_ROOTS as usize {
if 2 * n > Field::num_roots() as usize {
// too many elements for this field, not enough roots of unity
return None;
}
Expand Down
Loading

0 comments on commit c5e0a4d

Please sign in to comment.