Skip to content

parketh/pm-core

Repository files navigation

Private Money

Private Money is a modernized fork of Tornado Cash allowing private money transfers on Base.

This repo contains the core contracts and circuits.

Setup

  1. Install npm dependencies
yarn
  1. Install circom (note: requires rust)
# refer to latest instructions at: https://docs.circom.io/getting-started/installation/

# clone repo
git clone https://github.com/iden3/circom.git

# install circom
cargo build --release
cargo install --path circom
  1. Install snarkjs (note: requires node)
npm install -g snarkjs
  1. Download ptau file

We use prepared .ptau files from the privacy-ethereum/perpetualpowersoftau repo.

The withdraw circuit has 27.4k constraints, so we use the ppot_0080_15.ptau which has 32.7k points and is 36mb in size.

To download the file, run:

yarn setup
  1. Build circuits and contracts
yarn build
  1. Run tests
yarn test

About

Private transfers on Base

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published