Inquiry about srsLagrange
in plonk.setup
#1134
-
I tried the following
the setup function panics with an error like this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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])
wheren
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