Skip to content

How to serialize the proof into []byte array and deserialize it back? #311

Answered by jingzhaoou
jingzhaoou asked this question in Q&A
Discussion options

You must be logged in to vote

Never mind. I am too green with Golang. I just figured out the bug in my code. Instead of var proof2 groth16.Proof, I should use proof2 := groth16.NewProof(curve). Things work fine afterward.

Thanks a lot!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jingzhaoou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant