README.md

September 19, 2023 ยท View on GitHub

Optimized MiMCSponge Hash Function

This is an optimized version of MiMC Sponge Hash Function.

VersionCreation code sizeCreation gas costRuntime code sizeRuntime gas cost
Deployed MiMC Sponge11,0472,209,32611,03517,460
Optimized MiMC Sponge10,9802,196,30310,97017,379

In summary, in comparison to the deployed version, the optimized version;

  • is 67 bytes smaller in creation code size
  • costs 13,023 gas lesser when deploying
  • is 65 bytes smaller in runtime code size
  • costs 81 gas lesser when calling