Skip to content

Commit

Permalink
Don't expose internal representation of fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cronokirby committed Feb 26, 2024
1 parent 04184f5 commit 4901fa3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/fields/fp/u32/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use super::{
const N: usize = N_32;

#[derive(Copy, Clone)]
pub struct Fp(pub fiat::FpMontgomeryDomainFieldElement);
pub struct Fp(fiat::FpMontgomeryDomainFieldElement);

impl PartialEq for Fp {
fn eq(&self, other: &Self) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fp/u64/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use super::{
const N: usize = N_64;

#[derive(Copy, Clone)]
pub struct Fp(pub fiat::FpMontgomeryDomainFieldElement);
pub struct Fp(fiat::FpMontgomeryDomainFieldElement);

impl PartialEq for Fp {
fn eq(&self, other: &Self) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fq/u32/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use super::{
const N: usize = N_32;

#[derive(Copy, Clone)]
pub struct Fq(pub fiat::FqMontgomeryDomainFieldElement);
pub struct Fq(fiat::FqMontgomeryDomainFieldElement);

impl PartialEq for Fq {
fn eq(&self, other: &Self) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fq/u64/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use super::{
const N: usize = N_64;

#[derive(Copy, Clone)]
pub struct Fq(pub fiat::FqMontgomeryDomainFieldElement);
pub struct Fq(fiat::FqMontgomeryDomainFieldElement);

impl PartialEq for Fq {
fn eq(&self, other: &Self) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fr/u32/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use super::{
const N: usize = N_32;

#[derive(Copy, Clone)]
pub struct Fr(pub fiat::FrMontgomeryDomainFieldElement);
pub struct Fr(fiat::FrMontgomeryDomainFieldElement);

impl PartialEq for Fr {
fn eq(&self, other: &Self) -> bool {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fr/u64/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use super::{
const N: usize = N_64;

#[derive(Copy, Clone)]
pub struct Fr(pub fiat::FrMontgomeryDomainFieldElement);
pub struct Fr(fiat::FrMontgomeryDomainFieldElement);

impl PartialEq for Fr {
fn eq(&self, other: &Self) -> bool {
Expand Down

0 comments on commit 4901fa3

Please sign in to comment.