Skip to content

gnark/examples arithmetization and proof #995

Answered by ivokub
ANNMAINAWANGARI asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, the online playground at https://play.gnark.io/ doesn't run the full prover to output a proof, but only runs until solving stage and then stops. There are some performance problems with compiling the full Groth16/PLONK prover.

For testing locally, I would recommend setting up a Go environment, doing:

go mod init example
go get github.com/consensys/gnark@master

And then start implementing the circuits in main.go for example. As an example on how to run the full Groth16 prover, see https://pkg.go.dev/github.com/consensys/gnark@v0.9.1/std/math/emulated#example-Field:

	circuit := ExampleFieldCircuit[emulated.BN254Fp]{}
	witness := ExampleFieldCircuit[emulated.BN254Fp]{
		In1: emulated.Val…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ANNMAINAWANGARI
Comment options

@ivokub
Comment options

Answer selected by ANNMAINAWANGARI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants