Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: pub visibility modifier #95

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "MIT OR Apache-2.0"
# no-alloc, no-std
cfg-if = "1.0"
hex = { version ="=0.4.3", default-features = false }
subtle = { version="2.5", default-features = false }
subtle = { version="2.4.1", default-features = false }
tracing-subscriber = { version = "0.3", default-features = false }
zeroize = { version = "1.7", default-features = false }
# no-std
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fp/u32/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Fp {
Self(x)
}

pub(crate) fn to_le_limbs(&self) -> [u64; N_64] {
pub fn to_le_limbs(&self) -> [u64; N_64] {
let mut x_non_montgomery = fiat::FpNonMontgomeryDomainFieldElement([0; N]);
fiat::fp_from_montgomery(&mut x_non_montgomery, &self.0);
let limbs = x_non_montgomery.0;
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 @@ -43,7 +43,7 @@ impl Fp {
Self(x)
}

pub(crate) fn to_le_limbs(&self) -> [u64; N_64] {
pub fn to_le_limbs(&self) -> [u64; N_64] {
let mut x_non_montgomery = fiat::FpNonMontgomeryDomainFieldElement([0; N]);
fiat::fp_from_montgomery(&mut x_non_montgomery, &self.0);
x_non_montgomery.0
Expand Down
4 changes: 2 additions & 2 deletions src/fields/fq/u32/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl Fq {
Self(x)
}

pub(crate) fn to_le_limbs(&self) -> [u64; N_64] {
pub fn to_le_limbs(&self) -> [u64; N_64] {
debug_assert!(!self.is_sentinel());

let mut x_non_montgomery = fiat::FqNonMontgomeryDomainFieldElement([0; N]);
Expand All @@ -87,7 +87,7 @@ impl Fq {
Self(fiat::FqMontgomeryDomainFieldElement(limbs))
}

pub const fn from_montgomery_limbs(limbs: [u64; N_64]) -> Fq {
pub(crate) const fn from_montgomery_limbs(limbs: [u64; N_64]) -> Fq {
Self(fiat::FqMontgomeryDomainFieldElement([
limbs[0] as u32,
(limbs[0] >> 32) as u32,
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 @@ -52,7 +52,7 @@ impl Fq {
Self(x)
}

pub(crate) fn to_le_limbs(&self) -> [u64; N_64] {
pub fn to_le_limbs(&self) -> [u64; N_64] {
debug_assert!(!self.is_sentinel());

let mut x_non_montgomery = fiat::FqNonMontgomeryDomainFieldElement([0; N]);
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 @@ -51,7 +51,7 @@ impl Fr {
Self(x)
}

pub(crate) fn to_le_limbs(&self) -> [u64; N_64] {
pub fn to_le_limbs(&self) -> [u64; N_64] {
let mut x_non_montgomery = fiat::FrNonMontgomeryDomainFieldElement([0; N]);
fiat::fr_from_montgomery(&mut x_non_montgomery, &self.0);
let limbs = x_non_montgomery.0;
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 @@ -43,7 +43,7 @@ impl Fr {
Self(x)
}

pub(crate) fn to_le_limbs(&self) -> [u64; N_64] {
pub fn to_le_limbs(&self) -> [u64; N_64] {
let mut x_non_montgomery = fiat::FrNonMontgomeryDomainFieldElement([0; N]);
fiat::fr_from_montgomery(&mut x_non_montgomery, &self.0);
x_non_montgomery.0
Expand Down
Loading