mirror of
https://github.com/tornadocash/fixed-merkle-tree.git
synced 2024-06-17 09:53:28 +02:00
4 lines
179 B
JavaScript
4 lines
179 B
JavaScript
const { mimcsponge } = require('circomlib')
|
|
const { bigInt } = require('snarkjs')
|
|
module.exports = (left, right) => mimcsponge.multiHash([bigInt(left), bigInt(right)]).toString()
|