mirror of https://github.com/vacp2p/zerokit.git
chore: make clippy happy
This commit is contained in:
parent
83fc39730f
commit
83ef5ae3c3
|
@ -73,6 +73,12 @@ impl Multiplier {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for Multiplier {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn multiplier_proof() {
|
||||
let mul = Multiplier::new();
|
||||
|
|
|
@ -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")]
|
||||
|
|
|
@ -16,6 +16,8 @@ pub struct Multiplier {
|
|||
params: ProvingKey<Bn254>,
|
||||
}
|
||||
|
||||
// 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();
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
#![allow(dead_code)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
pub mod ffi;
|
||||
pub mod identity;
|
||||
pub mod public;
|
||||
|
|
|
@ -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")]
|
||||
|
|
|
@ -178,6 +178,12 @@ impl RLN {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for RLN {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rln_proof() {
|
||||
let mul = RLN::new();
|
||||
|
|
Loading…
Reference in New Issue