mirror of
https://github.com/arnaucube/testudo.git
synced 2026-01-13 01:01:28 +01:00
remove unnecessary dependencies and change package name
This commit is contained in:
@@ -18,15 +18,10 @@ use ark_groth16::{
|
||||
Groth16, PreparedVerifyingKey, Proof as GrothProof,
|
||||
};
|
||||
|
||||
use ark_poly_commit::multilinear_pc::{
|
||||
data_structures::{Commitment, Proof, VerifierKey},
|
||||
MultilinearPC,
|
||||
};
|
||||
use ark_r1cs_std::{
|
||||
alloc::{AllocVar, AllocationMode},
|
||||
fields::fp::FpVar,
|
||||
prelude::{Boolean, EqGadget, FieldVar},
|
||||
R1CSVar,
|
||||
};
|
||||
use ark_relations::r1cs::{ConstraintSynthesizer, ConstraintSystemRef, Namespace, SynthesisError};
|
||||
use ark_sponge::{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
use crate::group::Fr;
|
||||
|
||||
use crate::poseidon_transcript::{AppendToPoseidon, PoseidonTranscript};
|
||||
|
||||
use super::commitments::{Commitments, MultiCommitGens};
|
||||
@@ -15,16 +15,13 @@ use super::scalar::Scalar;
|
||||
use super::transcript::{AppendToTranscript, ProofTranscript};
|
||||
use ark_bls12_377::Bls12_377 as I;
|
||||
use ark_ff::{One, UniformRand, Zero};
|
||||
use ark_poly::{DenseMultilinearExtension, MultilinearExtension};
|
||||
use ark_poly_commit::multilinear_pc::data_structures::{
|
||||
CommitterKey, UniversalParams, VerifierKey,
|
||||
};
|
||||
use ark_poly::MultilinearExtension;
|
||||
use ark_poly_commit::multilinear_pc::data_structures::{CommitterKey, VerifierKey};
|
||||
use ark_poly_commit::multilinear_pc::MultilinearPC;
|
||||
use ark_serialize::*;
|
||||
use core::ops::Index;
|
||||
use merlin::Transcript;
|
||||
use std::ops::{Add, AddAssign, Neg, Sub, SubAssign};
|
||||
use std::process::abort;
|
||||
|
||||
#[cfg(feature = "multicore")]
|
||||
use rayon::prelude::*;
|
||||
@@ -59,11 +56,11 @@ impl MultilinearExtension<Scalar> for DensePolynomial {
|
||||
}
|
||||
}
|
||||
|
||||
fn relabel(&self, a: usize, b: usize, k: usize) -> Self {
|
||||
fn relabel(&self, _a: usize, _b: usize, _k: usize) -> Self {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn fix_variables(&self, partial_point: &[Scalar]) -> Self {
|
||||
fn fix_variables(&self, _partial_point: &[Scalar]) -> Self {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#![allow(clippy::assertions_on_result_states)]
|
||||
|
||||
extern crate ark_std;
|
||||
extern crate byteorder;
|
||||
extern crate core;
|
||||
extern crate digest;
|
||||
extern crate lazy_static;
|
||||
@@ -42,7 +41,7 @@ mod constraints;
|
||||
pub mod poseidon_transcript;
|
||||
|
||||
use ark_ff::Field;
|
||||
use ark_relations::r1cs;
|
||||
|
||||
use ark_serialize::*;
|
||||
use ark_std::Zero;
|
||||
use core::cmp::max;
|
||||
|
||||
@@ -363,7 +363,7 @@ impl R1CSProof {
|
||||
input: &[Scalar],
|
||||
evals: &(Scalar, Scalar, Scalar),
|
||||
transcript: &mut PoseidonTranscript,
|
||||
gens: &R1CSGens,
|
||||
_gens: &R1CSGens,
|
||||
) -> Result<usize, ProofVerifyError> {
|
||||
self.comm.append_to_poseidon(transcript);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user