MCPcopy Index your code
hub / github.com/ChihChengLiang/poseidon-tornado

github.com/ChihChengLiang/poseidon-tornado @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
44 symbols 82 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

First, you must have the Circom 2 compiler installed. See installation instructions for details.

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

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 26
Class 12
Function 3
Interface 3

Languages

TypeScript100%

Modules by API surface

src/merkleTree.ts30 symbols
tests/ETHTornado.test.ts14 symbols

For agents

$ claude mcp add poseidon-tornado \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page