Skip to content

stanbar/tornado-haze

Repository files navigation

Haze: A Compliant Privacy Mixer

Test

Install packages

npm install

In another terminal, run development Ethereum blockchain Ganache

ganache

Run tests

npm run test-truffle

Circuits

Deposit circuit

npx circomkit compile deposit

# print circuit info if you want to
npx circomkit info deposit
npx circomkit setup deposit
  1. Prepare your input file under ./inputs/deposit/default.json.
{
  "commitment": "19024681099133524840156324983568230760854472816913743369260577617906673189275",
  "recipent_public_key": [
    "3252355501818922325455731784489845477973798534514790220186484764289101407655",
    "3096656455839986914707412201183909629992262841773273405994326777564637273372"
  ],
  "ciphertext_c1": [
    "14898212363494345984347536432125013692926977752220375196808917497262774306744",
    "3171057686753273476123281675775784984150691825649770997870293709062330867364"
  ],
  "ciphertext_c2": [
    "1060327031243741617644530648050271553605534201868007304162239117608175371608",
    "2092905585859994349184271523055141593762697402189223352300657981346191122379"
  ],
  "nullifier": "244495262209288721608057881107143866602166264979662981504552690701621814865",
  "secret": "289629740260932586915060168246818373450083543557906856863398377133515963403",
  "randomness": "64146490736614703763108545333771432516771786228480311753150726276314256866"
}
  1. We are ready to create a proof!
npx circomkit prove deposit
  1. We can then verify our proof. You can try and modify the public input at ./build/deposit/default/public.json and see if the proof verifies or not!
npx circomkit verify deposit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors