This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ npm install circomlibjs snarkjs | |
// $ node mini-tornado-cash.js | |
// will output input.json | |
// then use snarkjs generate proof, verify ... | |
const fs = require("fs"); | |
const { | |
buildPedersenHash, | |
buildMimcSponge, | |
buildBabyjub, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This is a demo of BAMM. Frax's recent article introduced BAMM, which is quite intriguing. | |
As the article didn't provide more details, I wanted to create a simple model for better understanding and simulation. | |
This includes some of my personal speculations on implementation details. | |
If there are any inaccuracies, feel free to point them out! | |
original article link: <https://flywheeldefi.com/article/bamm-revolutionary-primative> | |
""" |