arnaucube
arnaucube/go-snarkPublic Self-hosted repository
go-snark/externalVerif/circomVerifier_test.go
externalVerif/circomVerifier_test.goRaw
 1package externalVerif
 2
 3import (
 4	"testing"
 5
 6	"github.com/stretchr/testify/assert"
 7)
 8
 9func TestVerifyFromCircom(t *testing.T) {
10	verified, err := VerifyFromCircom("circom-test/verification_key.json", "circom-test/proof.json", "circom-test/public.json")
11	assert.Nil(t, err)
12	assert.True(t, verified)
13}