mirror of
https://github.com/arnaucube/go-bellman-verifier.git
synced 2026-03-22 23:46:44 +01:00
No description
- Go 100%
| testdata | ||
| .travis.yml | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| README.md | ||
| verifier.go | ||
| verifier_test.go | ||
go-bellman-verifier

Groth16 zkSNARK bellman proof verifier
Verify Groth16 proofs generated from bellman, using cloudflare/bn256 (used by go-ethereum) for the Pairing.
Usage
public, err := ParsePublicRaw(publicJson)
require.Nil(t, err)
proof, err := ParseProofRaw(proofJson)
require.Nil(t, err)
vk, err := ParseVkRaw(vkJson)
require.Nil(t, err)
v := Verify(vk, proof, public)
assert.True(t, v)