Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AmadiMichael/OptimizedMiMCSponge
https://github.com/AmadiMichael/OptimizedMiMCSponge
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/AmadiMichael/OptimizedMiMCSponge
- Owner: AmadiMichael
- Created: 2023-09-18T22:56:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-19T07:20:17.000Z (over 1 year ago)
- Last Synced: 2024-11-09T01:41:42.019Z (about 2 months ago)
- Language: Solidity
- Size: 30.3 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-huff - Optimized-MiMC-Sponge-Hash
README
## Optimized MiMCSponge Hash Function
This is an optimized version of MiMC Sponge Hash Function.
| Version | Creation code size | Creation gas cost | Runtime code size | Runtime gas cost |
| --------------------- | ------------------ | ----------------- | ----------------- | ---------------- |
| Deployed MiMC Sponge | 11,047 | 2,209,326 | 11,035 | 17,460 |
| Optimized MiMC Sponge | 10,980 | 2,196,303 | 10,970 | 17,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