mirror of
https://github.com/arnaucube/circomlib.git
synced 2026-02-07 11:16:45 +01:00
11 lines
259 B
JavaScript
11 lines
259 B
JavaScript
const mimc7 = require("./mimc7");
|
|
const bigInt = require("snarkjs").bigInt;
|
|
|
|
exports.hash0 = function (left, right) {
|
|
return mimc7.multiHash(left, right);
|
|
};
|
|
|
|
exports.hash1 = function(key, value) {
|
|
return mimc7.multiHash([key, value], bigInt.one);
|
|
};
|