dmpierre / sha1-circom

Generate a zero-knowledge proof for a SHA1 pre-image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️ 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

About

Generate a zero-knowledge proof for a SHA1 pre-image.

License:MIT License


Languages

Language:Circom 66.2%Language:TypeScript 33.8%