Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cleanpegasus/shield

Proof of preimage of a hash from a given list
https://github.com/cleanpegasus/shield

Last synced: about 1 month ago
JSON representation

Proof of preimage of a hash from a given list

Awesome Lists containing this project

README

        

# Shield

### Rareskill Circom Bootcamp Homework - 6
Create a ZK circuit that lets you prove you know the preimage of *one* of the hashes in a list.

That is, a smart contract holds a fixed-length array of hashes (MiMC, Poseidon,…, your choice) and you submit a proof that you know the preimage to one of them.

Thus, your circuit takes an input of n hashes (public input) and the preimage of the hash and which hash it is (private input).