This repo provides a working SHA1 implementation in circom. Implementation is inspired from circomlib SHA256, but adapted and tweaked to fit SHA1 specificities.
circuits
contains all necessary circuits for running SHA1 on arbitrary binary inputs. See test/sha1.ts
for usage.
Work done under a Privacy and Scaling Exploration (PSE) grant.
Run yarn install
.
In order to run tests out-of-the-box, an example .zkey
comes with this repo. It should not be used in prduction.
See test
folder for example usage.