Consensys / gnark

gnark is a fast zk-SNARK library that offers a high-level API to design circuits. The library is open source and developed under the Apache 2.0 license
https://hackmd.io/@gnark
Apache License 2.0
1.45k stars 381 forks source link

perf: Groth16 Solidity verifier #1270

Open ivokub opened 2 months ago

ivokub commented 2 months ago

The challenge hashing in Groth16 Solidity verifier uses abi.encodePacked which is gas inefficient and may be deprecated in the future. It would be better to manually align the inputs in assembly.