Skip to content

Instantly share code, notes, and snippets.

View 0x-stan's full-sized avatar

0xstan 0x-stan

View GitHub Profile
@0x-stan
0x-stan / MiniTornadoCash.js
Last active February 3, 2023 13:20
Mini Tornado.cash ZK part
// $ 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,
@0x-stan
0x-stan / BAMM.py
Last active December 17, 2023 17:26
a demo of BAMM
"""
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>
"""