Skip to content

Inquiry about srsLagrange in plonk.setup #1134

Answered by ThomasPiellard
ZyadSamy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, so clearly the message is misleading given the sizes, we need to change that. To convert an SRS to Lagrange you called the correct function, but you need to know the size of the constraint system, so you need to call g1, err := kzg_bn254.ToLagrangeG1(srs.Pk.G1[:n]) where n is the size of the constraint system. The reason is that to convert an SRS to Lagrange form we use a FFT-like transformation where the exact size of the circuit is needed

Replies: 1 comment 1 reply

Comment options

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

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