Skip to content

Latest commit

 

History

History
25 lines (13 loc) · 1005 Bytes

README.md

File metadata and controls

25 lines (13 loc) · 1005 Bytes

⚠️ This is a WIP, with incomplete testing and unaudited code. Avoid production usage.

Description

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.

Usage

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.

Resources