feat(crypto): expose api modules

Currently the API modules are hidden to the crate scope.

In order to avoid global permissive allows, they can initially be
exported, and tweaked to local scopes as they get implemented, finalized
and tested.

Related to #3
This commit is contained in:
Victor Lopez 2022-10-20 18:04:10 +02:00
parent 3220cd0ed8
commit ebf9557d1c
No known key found for this signature in database
GPG key ID: DE1CBCF58160A41D
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ pub type Digest = <Hasher as HashFn>::Digest;
// ================================================================================================
#[inline(always)]
fn exp_acc<B: StarkField, const N: usize, const M: usize>(base: [B; N], tail: [B; N]) -> [B; N] {
fn _exp_acc<B: StarkField, const N: usize, const M: usize>(base: [B; N], tail: [B; N]) -> [B; N] {
let mut result = base;
for _ in 0..M {
result.iter_mut().for_each(|r| *r = r.square());

View file

@ -3,8 +3,8 @@ pub use winterfell::math::{
ExtensionOf, FieldElement, StarkField,
};
pub(crate) mod hash;
pub(crate) mod merkle;
pub mod hash;
pub mod merkle;
// TYPE ALIASES
// ================================================================================================