I want to calculate how many groth16 proofs i can fit in a block, Maybe someone can point me how can i verify a groth16 proof in fuel network in its smart contract language
1 Like
Hello @guha-rahul , here is an example transaction of a Groth16 proof being verified on the fuel testnet.
From here it can be seen that a single groth16 proof takes 593258 in gas.
And the current fuel blocks can do 30 million gas.
So, in a single block we can do: 30*1000000 / 593258 = ~51
So, you can say with the current gas limits around 51 Groth16 proofs per block.
Things to note.
- our block times are 1 second, and will go down and also we might raise gas limits as well in future in alt-DA fuel rollups!
- Ideally a lot of recursion would be used in practice as well!