Conversation
afbd5b4 to
7c23ab0
Compare
7c23ab0 to
a880338
Compare
Thanks for the reply. Indeed it is true, but for now we know that it will be called on bls12-377. When we migrate to small fields in Linea, then we'll change it accordingly. |
ivokub
left a comment
There was a problem hiding this comment.
I updated against master. Now it is good to merge on my side. You can have a look at the changes I made:
- embedded the SRS verification key
- added tests against SRS to see eveyrthing works
- added tests for a lot of different unmarshal edge cases
- used new
uints.Bytesandconversionpackage for converting between bytes and elements
Description
Implementation of the EIP4844 precompile.
Type of change
How has this been tested?
See marshall_test.go, kzg_point_evaluation_test.go
How has this been benchmarked?
Unmarshall#constraints: 1772 when compiled on BN254, emulating BLS12-381 base fieldUnmarshalCompressed#constraints: 585600 when compiled on BN254, emulating BLS12-381 base fieldKzgPointEvaluation#constraints: 3772424 when compiled on BN254, emulating BLS12-381 base fieldChecklist:
golangci-lintdoes not output errors locally