Upgrade to wasmer 4.3 (#64)

This commit is contained in:
Martin Allen
2024-07-06 15:06:18 -07:00
committed by GitHub
parent 4d99060fce
commit 967add46da
12 changed files with 2345 additions and 1248 deletions

View File

@@ -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",