mirror of
https://github.com/arnaucube/testudo.git
synced 2026-01-12 16:51:28 +01:00
implement spartan verifier as a circuit and verify it with groth16
This commit is contained in:
@@ -23,10 +23,10 @@ use ark_r1cs_std::{
|
||||
fields::fp::FpVar,
|
||||
prelude::{Boolean, EqGadget, FieldVar},
|
||||
};
|
||||
<<<<<<< HEAD
|
||||
use ark_relations::r1cs::{ConstraintSynthesizer, ConstraintSystemRef, Namespace, SynthesisError};
|
||||
use ark_sponge::{
|
||||
constraints::CryptographicSpongeVar,
|
||||
poseidon::{constraints::PoseidonSpongeVar, PoseidonParameters},
|
||||
=======
|
||||
use ark_relations::{
|
||||
};
|
||||
use rand::{CryptoRng, Rng};
|
||||
|
||||
|
||||
@@ -11,7 +11,10 @@ use ark_bw6_761::BW6_761 as P;
|
||||
use super::commitments::MultiCommitGens;
|
||||
use super::dense_mlpoly::{DensePolynomial, EqPolynomial, PolyCommitmentGens};
|
||||
use super::errors::ProofVerifyError;
|
||||
|
||||
use super::group::{
|
||||
CompressGroupElement, DecompressGroupElement, GroupElement, VartimeMultiscalarMul,
|
||||
};
|
||||
use super::nizk::{EqualityProof, KnowledgeProof, ProductProof};
|
||||
use super::r1csinstance::R1CSInstance;
|
||||
|
||||
use super::scalar::Scalar;
|
||||
|
||||
@@ -1650,7 +1650,11 @@ impl SparsePolynomial {
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
<<<<<<< HEAD
|
||||
use crate::parameters::poseidon_params;
|
||||
=======
|
||||
use crate::{parameters::poseidon_params};
|
||||
>>>>>>> implement spartan verifier as a circuit and verify it with groth16
|
||||
|
||||
use super::*;
|
||||
use ark_std::UniformRand;
|
||||
|
||||
Reference in New Issue
Block a user