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()
|