All Projects → ChihChengLiang → poseidon-tornado

ChihChengLiang / poseidon-tornado

Licence: other
No description, website, or topics provided.

Programming Languages

typescript
32286 projects
solidity
1140 projects
shell
77523 projects

Tornado Cash but with Poseidon Hash

Node.js CI

WARNING: This project is unaudited, please don't use in the production.

We copy and modify the Tornado Cash and implement the optimization suggestions in the a Tornado audit report.

Specifically we

  • Use Poseidon Hash for tree hashing, nullifier hashing, and commitment construction
  • Use the following suggested construction to allow nullifier reuse
commitment = PoseidonHash(nullifier, 0)
nullifierHash = PoseidonHash(nullifier, 1, leafIndex)

Build

The build step compiles the circuit, does untrusted setup, generates verifier contract, and compiles all the contracts. It could take a while at the setup step.

npm install
npm run build
npm run test

Benchmark

npm run info
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].