Golang library + utility for converting from SnarkJS ptau files to a gnark kzg.SRS
.
- Generate or download a .ptau file using the SnarkJS instructions.
- Install
ptau2gnark
:go install github.com/mdehoog/gnark-ptau/cmd/ptau2gnark@latest
- Convert the .ptau file to a gnark
kzg.SRS
:ptau2gnark <path to .ptau file> <path to output .srs file>
- Use the
kzg.SRS
in your gnark circuit:var k kzg.SRS srs, _ := os.Open("<path to output .srs file>") _, err = k.ReadFrom(srs)