diff --git a/multiplier/src/public.rs b/multiplier/src/public.rs index 2b46a9b..d53fd82 100644 --- a/multiplier/src/public.rs +++ b/multiplier/src/public.rs @@ -73,6 +73,12 @@ impl Multiplier { } } +impl Default for Multiplier { + fn default() -> Self { + Self::new() + } +} + #[test] fn multiplier_proof() { let mul = Multiplier::new(); diff --git a/poseidon-tornado/src/main.rs b/poseidon-tornado/src/main.rs index 630ba59..caf9ca1 100644 --- a/poseidon-tornado/src/main.rs +++ b/poseidon-tornado/src/main.rs @@ -10,13 +10,13 @@ use ark_groth16::{ use num_bigint::BigInt; // Tracing -use ark_relations::r1cs::{ConstraintLayer, ConstraintSystem, ConstraintTrace, TracingMode}; -use tracing::{event, span, Level}; +use ark_relations::r1cs::{ConstraintLayer, ConstraintTrace, TracingMode}; +//use tracing::{event, span, Level}; use tracing_subscriber::layer::SubscriberExt; // JSON use serde::Deserialize; -use serde_json; +//use serde_json; #[derive(Debug, Deserialize)] #[serde(rename_all = "camelCase")] diff --git a/poseidon-tornado/src/public.rs b/poseidon-tornado/src/public.rs index 2b46a9b..f9bf293 100644 --- a/poseidon-tornado/src/public.rs +++ b/poseidon-tornado/src/public.rs @@ -16,6 +16,8 @@ pub struct Multiplier { params: ProvingKey, } +// TODO This should use poseidon-tornado stuff in main.rs for proper example + impl Multiplier { // TODO Break this apart here pub fn new() -> Multiplier { @@ -73,6 +75,12 @@ impl Multiplier { } } +impl Default for Multiplier { + fn default() -> Self { + Self::new() + } +} + #[test] fn multiplier_proof() { let mul = Multiplier::new(); diff --git a/rln/src/lib.rs b/rln/src/lib.rs index 10ad6d9..79fb4e4 100644 --- a/rln/src/lib.rs +++ b/rln/src/lib.rs @@ -1,3 +1,6 @@ +#![allow(dead_code)] +#![allow(unused_imports)] + pub mod ffi; pub mod identity; pub mod public; diff --git a/rln/src/main.rs b/rln/src/main.rs index 307817d..3ced7b0 100644 --- a/rln/src/main.rs +++ b/rln/src/main.rs @@ -10,13 +10,13 @@ use ark_groth16::{ use num_bigint::BigInt; // Tracing -use ark_relations::r1cs::{ConstraintLayer, ConstraintSystem, ConstraintTrace, TracingMode}; -use tracing::{event, span, Level}; +use ark_relations::r1cs::{ConstraintLayer, ConstraintTrace, TracingMode}; +//use tracing::{event, span, Level}; use tracing_subscriber::layer::SubscriberExt; // JSON use serde::Deserialize; -use serde_json; +//use serde_json; #[derive(Debug, Deserialize)] //#[serde(rename_all = "camelCase")] diff --git a/rln/src/public.rs b/rln/src/public.rs index 136650c..baef074 100644 --- a/rln/src/public.rs +++ b/rln/src/public.rs @@ -178,6 +178,12 @@ impl RLN { } } +impl Default for RLN { + fn default() -> Self { + Self::new() + } +} + #[test] fn rln_proof() { let mul = RLN::new();