refactor(semaphore): Use crate::protocol for tests

Instead of semaphore-rs as black box.
This commit is contained in:
Oskar Thoren 2022-06-01 15:17:46 +01:00
parent 61b63cb90e
commit e7fdcd1e8a
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
1 changed files with 10 additions and 1 deletions

View File

@ -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() {