From e7fdcd1e8ae47af6c7120835df057145cd7a3de2 Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Wed, 1 Jun 2022 15:17:46 +0100 Subject: [PATCH] refactor(semaphore): Use crate::protocol for tests Instead of semaphore-rs as black box. --- semaphore/src/lib.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/semaphore/src/lib.rs b/semaphore/src/lib.rs index 19d56d3..d5f63d1 100644 --- a/semaphore/src/lib.rs +++ b/semaphore/src/lib.rs @@ -1,8 +1,17 @@ +#![allow(clippy::multiple_crate_versions)] + +pub mod protocol; +pub mod circuit; + +#[cfg(feature = "dylib")] +pub use circuit::initialize; + #[cfg(test)] mod tests { use semaphore::{ - hash_to_field, identity::Identity, poseidon_tree::PoseidonTree, protocol::*, Field, + hash_to_field, identity::Identity, poseidon_tree::PoseidonTree, Field, }; + use crate::protocol::*; #[test] fn test_semaphore() {