Skip to content

Commit

Permalink
Change visibility to crate
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalal committed Jan 6, 2023
1 parent 04a0d23 commit 7d5d569
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::ristretto::RistrettoPoint;

pub const RISTRETTO_BASEPOINT_POINT: RistrettoPoint = RistrettoPoint(RBP);

pub fn module(_py: Python<'_>) -> PyResult<(&str, &PyModule)> {
pub(crate) fn module(_py: Python<'_>) -> PyResult<(&str, &PyModule)> {
let name = "constants";
let m = PyModule::new(_py, name)?;
m.add("RISTRETTO_BASEPOINT_POINT", RISTRETTO_BASEPOINT_POINT)?;
Expand Down
2 changes: 1 addition & 1 deletion src/ristretto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl CompressedRistretto {
}
}

pub fn module(_py: Python<'_>) -> PyResult<(&str, &PyModule)> {
pub(crate) fn module(_py: Python<'_>) -> PyResult<(&str, &PyModule)> {
let name = "ristretto";
let m = PyModule::new(_py, name)?;
m.add_class::<RistrettoPoint>()?;
Expand Down
2 changes: 1 addition & 1 deletion src/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl Scalar {
}
}

pub fn module(_py: Python<'_>) -> PyResult<(&str, &PyModule)> {
pub(crate) fn module(_py: Python<'_>) -> PyResult<(&str, &PyModule)> {
let name = "scalar";
let m = PyModule::new(_py, name)?;
m.add_class::<Scalar>()?;
Expand Down

0 comments on commit 7d5d569

Please sign in to comment.