From 74f6588f5afa79dc7b1c91e6061261a35be74b14 Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Fri, 11 Mar 2022 15:20:55 +0800 Subject: [PATCH] remove tracing --- poseidon-tornado/src/main.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/poseidon-tornado/src/main.rs b/poseidon-tornado/src/main.rs index 147a88b..382dc72 100644 --- a/poseidon-tornado/src/main.rs +++ b/poseidon-tornado/src/main.rs @@ -9,11 +9,6 @@ use ark_groth16::{ use num_bigint::BigInt; -// Tracing -use tracing::{span, event, Level}; -use ark_relations::r1cs::{ConstraintTrace, ConstraintLayer, ConstraintSystem, TracingMode}; -use tracing_subscriber::layer::SubscriberExt; - // JSON use serde::Deserialize; use serde_json; @@ -37,24 +32,11 @@ struct WitnessInput2 { fn groth16_proof_example2() -> Result<()> { println!("Circom 1"); - // Tracing to help with debugging - let mut layer = ConstraintLayer::default(); - layer.mode = TracingMode::OnlyConstraints; - let subscriber = tracing_subscriber::Registry::default().with(layer); - let _guard = tracing::subscriber::set_default(subscriber); - - let trace = ConstraintTrace::capture(); - println!("Trace is: {:?}", trace); - let cfg = CircomConfig::::new( "./resources/tornado-core/withdraw.wasm", "./resources/tornado-core/withdraw.r1cs", )?; - // Test - let trace = ConstraintTrace::capture(); - println!("Trace is: {:?}", trace); - // XXX Using other input.json here to check, based on tornado-cash proper let input_json_str = r#" {