From ebf9557d1c723c4b386825d716e051ee0531947a Mon Sep 17 00:00:00 2001 From: Victor Lopez Date: Thu, 20 Oct 2022 18:04:10 +0200 Subject: [PATCH] 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 --- crypto/src/hash/mod.rs | 2 +- crypto/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/src/hash/mod.rs b/crypto/src/hash/mod.rs index 367f415..0b0eed9 100644 --- a/crypto/src/hash/mod.rs +++ b/crypto/src/hash/mod.rs @@ -11,7 +11,7 @@ pub type Digest = ::Digest; // ================================================================================================ #[inline(always)] -fn exp_acc(base: [B; N], tail: [B; N]) -> [B; N] { +fn _exp_acc(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()); diff --git a/crypto/src/lib.rs b/crypto/src/lib.rs index ec50e8b..62954c2 100644 --- a/crypto/src/lib.rs +++ b/crypto/src/lib.rs @@ -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 // ================================================================================================