Skip to content

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

License

Notifications You must be signed in to change notification settings

dmpierre/sha1-circom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published