mysteryon88 / zk-hashes

Research and comparison of hashing algorithms for zk-protocol arithmetic scheme

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A research on hash functions in different zk-tools

Circuit constraints

Due to differences in implementations, different numbers of arguments are passed, which affects the number of constraints to some extent. A more detailed breakdown can be seen in each file, here are approximate values.

Hash function Circom ZoKrates Noir gnark
Keccak 151 104 146 376 54 830 183895
MiMCSponge 660 568 370 311
Pedersen 438 4 958 28 742 -
Poseidon 213 241 578 -
SHA_256 30 134 25 774 - 48 886 41 739 183895
Blake2 - 46 912 21 444 -

About

Research and comparison of hashing algorithms for zk-protocol arithmetic scheme


Languages

Language:Circom 63.8%Language:TypeScript 21.1%Language:Go 9.2%Language:Roff 5.6%Language:JavaScript 0.3%