Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/advaita-saha/zk-hashverifier

A simple zero-knowledge proof project to verify ownership of a hash for a particular data
https://github.com/advaita-saha/zk-hashverifier

Last synced: 24 days ago
JSON representation

A simple zero-knowledge proof project to verify ownership of a hash for a particular data

Awesome Lists containing this project

README

        

# A simple zero-knowledge proof project to verify ownership of a hash for a particular data

This project is a simple implementation of a zero-knowledge proof to verify ownership of a hash for a particular data. The proof is based on the Poseidon hash function.

We can prove that we know the original data for the given hash without revealing it.

The proof is a proof of knowledge of a hash for a particular data. The prover proves that he knows a hash for a particular data without revealing the data itself. The verifier verifies that the prover knows a hash for a particular data.
The proof is based on the Poseidon hash function

### Run the following commands to run the project

- Install rust
```bash
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
```
- Install circom
```bash
git clone https://github.com/iden3/circom.git
cd circom
cargo build --release
cargo install --path circom
```
- Install snarkjs
```bash
npm install -g snarkjs
```
- Clone this repository and then run the following commands
```bash
cd zk-hashVerifier
npm i
npm run build
npm run setup
npm run verify
```
- To clean the existing build files
```bash
npm run clean
```