Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/advaita-saha/zk-hashverifier
- Owner: advaita-saha
- Created: 2023-03-26T09:22:11.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-26T12:31:33.000Z (almost 2 years ago)
- Last Synced: 2024-10-22T22:55:56.634Z (2 months ago)
- Language: JavaScript
- Size: 61.5 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```