mirror of
https://github.com/arnaucube/circom-compat.git
synced 2026-01-09 07:21:33 +01:00
refactor: rename circuit -> circom
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use ark_circom::{CircomBuilder, CircuitConfig};
|
||||
use ark_circom::{CircomBuilder, CircomConfig};
|
||||
use ark_std::rand::thread_rng;
|
||||
use color_eyre::Result;
|
||||
|
||||
@@ -9,7 +9,7 @@ use ark_groth16::{
|
||||
|
||||
#[test]
|
||||
fn groth16_proof() -> Result<()> {
|
||||
let cfg = CircuitConfig::<Bn254>::new(
|
||||
let cfg = CircomConfig::<Bn254>::new(
|
||||
"./test-vectors/mycircuit.wasm",
|
||||
"./test-vectors/mycircuit.r1cs",
|
||||
)?;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use ark_circom::{
|
||||
ethereum::{Inputs, Proof, VerifyingKey},
|
||||
CircomBuilder, CircuitConfig,
|
||||
CircomBuilder, CircomConfig,
|
||||
};
|
||||
use ark_std::rand::thread_rng;
|
||||
use color_eyre::Result;
|
||||
@@ -18,7 +18,7 @@ use std::{convert::TryFrom, sync::Arc};
|
||||
|
||||
#[tokio::test]
|
||||
async fn solidity_verifier() -> Result<()> {
|
||||
let cfg = CircuitConfig::<Bn254>::new(
|
||||
let cfg = CircomConfig::<Bn254>::new(
|
||||
"./test-vectors/mycircuit.wasm",
|
||||
"./test-vectors/mycircuit.r1cs",
|
||||
)?;
|
||||
@@ -70,10 +70,7 @@ async fn solidity_verifier() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
abigen!(
|
||||
Groth16Verifier,
|
||||
"./tests/verifier_abi.json"
|
||||
);
|
||||
abigen!(Groth16Verifier, "./tests/verifier_abi.json");
|
||||
|
||||
impl<M: Middleware> Groth16Verifier<M> {
|
||||
async fn check_proof<I: Into<Inputs>, P: Into<Proof>, VK: Into<VerifyingKey>>(
|
||||
|
||||
Reference in New Issue
Block a user