Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
iv, ...msg.map((e: BigInt, i: Number): BigInt => {
return e + mimc7.hash(sharedKey, iv + bigInt(i))
})
]
return msg.slice(1).map((e: BigInt, i: Number): BigInt => {
return e - mimc7.hash(sharedKey, iv + bigInt(i))
})
}
function hash(arr) {
return mimc7.hash(arr[0], arr[1]);
}