Skip to content

groth16.Verify Resulting In sigpanic: panicmem #274

Answered by gbotrel
Kasshern asked this question in Q&A
Discussion options

You must be logged in to vote

hi -- from the snippet, it seems you're not checking the Prover error;

proof, err := groth16.Prove(r1cs, pk, witness)

// missing error check here 

err = groth16.Verify(proof, vk, publicWitness)
if err != nil {
	return "INVALID PROOF!"
} else {
	return "VALID PROOF"
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kasshern
Comment options

Answer selected by Kasshern
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