Skip to content

Commit b5e32c0

Browse files
tarcieriOcheretovich
authored andcommitted
cleanup: reduce arithmetic module visibility
1 parent 4be5c83 commit b5e32c0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

bignp256/benches/field.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! bign-curve256v1 `FieldElement` benchmarks
22
3-
use bignp256::arithmetic::FieldElement;
3+
use bignp256::FieldElement;
44
use criterion::{criterion_group, criterion_main};
55

66
const FE_A: FieldElement = FieldElement::from_hex_vartime(

bignp256/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ pub use {
4343
secret_key::SecretKey,
4444
};
4545

46+
#[cfg(feature = "arithmetic")]
47+
pub use arithmetic::FieldElement;
48+
4649
/// Bign256 result type
4750
pub type Result<T> = core::result::Result<T, Error>;
4851

4952
#[cfg(feature = "arithmetic")]
50-
pub mod arithmetic;
53+
pub(crate) mod arithmetic;
5154

5255
#[cfg(any(feature = "test-vectors", test))]
5356
pub mod test_vectors;

0 commit comments

Comments
 (0)