A concept for coin tumbler on Mina.
Using whitelist to ensure 'locking' so no concurrent update to the merkle tree is possible.
Storing the whitelist on the IPFS.
More than happy to explain the idea and all pros and cons of this concept.
comment out "// ======== mock code here ========" blocks in order to work
npm install
jsipfs daemon
npx tsc && node build/src/index.js
As this is just proof of concept, many things been simplified but especially with the future recursion of snapp, there can be lot of improvements to be made. Such as taking whitelist to a separate snapp, allowing mixed values being deposited, enhancing size of jars which increases privacy
npm run test
npm run testw # watch mode
npm run coverage