Skip to content

Commit

Permalink
fix:cirucit->circuit (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdventureSeeker987 authored Feb 8, 2024
1 parent 946536f commit b3b073f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions snark-verifier/src/system/halo2/test/ipa/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ use paste::paste;
use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng};

macro_rules! test {
(@ $name:ident, $k:expr, $config:expr, $create_cirucit:expr, $prover:ty, $verifier:ty, $plonk_verifier:ty) => {
(@ $name:ident, $k:expr, $config:expr, $create_circuit:expr, $prover:ty, $verifier:ty, $plonk_verifier:ty) => {
paste! {
#[test]
fn [<test_ $name>]() {
let (params, pk, protocol, circuits) = halo2_ipa_prepare!(
pallas::Affine,
$k,
$config,
$create_cirucit
$create_circuit
);
let snark = halo2_ipa_create_snark!(
$prover,
Expand All @@ -46,8 +46,8 @@ macro_rules! test {
}
}
};
($name:ident, $k:expr, $config:expr, $create_cirucit:expr) => {
test!(@ $name, $k, $config, $create_cirucit, ProverIPA<pallas::Affine>, VerifierIPA<pallas::Affine>, PlonkVerifier::<IpaAs<pallas::Affine, Bgh19>>);
($name:ident, $k:expr, $config:expr, $create_circuit:expr) => {
test!(@ $name, $k, $config, $create_circuit, ProverIPA<pallas::Affine>, VerifierIPA<pallas::Affine>, PlonkVerifier::<IpaAs<pallas::Affine, Bgh19>>);
}
}

Expand Down
10 changes: 5 additions & 5 deletions snark-verifier/src/system/halo2/test/kzg/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ use paste::paste;
use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng};

macro_rules! test {
(@ $prefix:ident, $name:ident, $k:expr, $config:expr, $create_cirucit:expr, $prover:ty, $verifier:ty, $plonk_verifier:ty) => {
(@ $prefix:ident, $name:ident, $k:expr, $config:expr, $create_circuit:expr, $prover:ty, $verifier:ty, $plonk_verifier:ty) => {
paste! {
#[test]
fn [<test_ $prefix _ $name>]() {
let (params, pk, protocol, circuits) = halo2_kzg_prepare!(
$k,
$config,
$create_cirucit
$create_circuit
);
let snark = halo2_kzg_create_snark!(
$prover,
Expand All @@ -48,9 +48,9 @@ macro_rules! test {
}
}
};
($name:ident, $k:expr, $config:expr, $create_cirucit:expr) => {
test!(@ shplonk, $name, $k, $config, $create_cirucit, ProverSHPLONK<_>, VerifierSHPLONK<_>, PlonkVerifier<KzgAs<Bn256, Bdfg21>, LimbsEncoding<LIMBS, BITS>>);
test!(@ plonk, $name, $k, $config, $create_cirucit, ProverGWC<_>, VerifierGWC<_>, PlonkVerifier<KzgAs<Bn256, Gwc19>, LimbsEncoding<LIMBS, BITS>>);
($name:ident, $k:expr, $config:expr, $create_circuit:expr) => {
test!(@ shplonk, $name, $k, $config, $create_circuit, ProverSHPLONK<_>, VerifierSHPLONK<_>, PlonkVerifier<KzgAs<Bn256, Bdfg21>, LimbsEncoding<LIMBS, BITS>>);
test!(@ plonk, $name, $k, $config, $create_circuit, ProverGWC<_>, VerifierGWC<_>, PlonkVerifier<KzgAs<Bn256, Gwc19>, LimbsEncoding<LIMBS, BITS>>);
}
}

Expand Down

0 comments on commit b3b073f

Please sign in to comment.