mirror of
https://github.com/arnaucube/circom-compat.git
synced 2026-01-11 16:31:28 +01:00
Upgrade to wasmer 4.3 (#64)
This commit is contained in:
@@ -8,8 +8,8 @@ use ark_groth16::Groth16;
|
||||
|
||||
type GrothBn = Groth16<Bn254>;
|
||||
|
||||
#[test]
|
||||
fn groth16_proof() -> Result<()> {
|
||||
#[tokio::test]
|
||||
async fn groth16_proof() -> Result<()> {
|
||||
let cfg = CircomConfig::<Bn254>::new(
|
||||
"./test-vectors/mycircuit.wasm",
|
||||
"./test-vectors/mycircuit.r1cs",
|
||||
@@ -39,8 +39,8 @@ fn groth16_proof() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn groth16_proof_wrong_input() {
|
||||
#[tokio::test]
|
||||
async fn groth16_proof_wrong_input() {
|
||||
let cfg = CircomConfig::<Bn254>::new(
|
||||
"./test-vectors/mycircuit.wasm",
|
||||
"./test-vectors/mycircuit.r1cs",
|
||||
@@ -60,9 +60,9 @@ fn groth16_proof_wrong_input() {
|
||||
let _ = builder.build().unwrap_err();
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[tokio::test]
|
||||
#[cfg(feature = "circom-2")]
|
||||
fn groth16_proof_circom2() -> Result<()> {
|
||||
async fn groth16_proof_circom2() -> Result<()> {
|
||||
let cfg = CircomConfig::<Bn254>::new(
|
||||
"./test-vectors/circom2_multiplier2.wasm",
|
||||
"./test-vectors/circom2_multiplier2.r1cs",
|
||||
@@ -92,9 +92,9 @@ fn groth16_proof_circom2() -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[tokio::test]
|
||||
#[cfg(feature = "circom-2")]
|
||||
fn witness_generation_circom2() -> Result<()> {
|
||||
async fn witness_generation_circom2() -> Result<()> {
|
||||
let cfg = CircomConfig::<Bn254>::new(
|
||||
"./test-vectors/circom2_multiplier2.wasm",
|
||||
"./test-vectors/circom2_multiplier2.r1cs",
|
||||
|
||||
Reference in New Issue
Block a user