UNPKG

poseidon-h

Version:

Poseidon hash with alt_bn128 implementation in Typescript

13 lines 373 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadConstant = void 0; const loadConstant = (constant) => { const { p, m, c } = constant; return { p, m: m.map((row) => row.map((x) => BigInt(x))), c: c.map((x) => BigInt(x)), }; }; exports.loadConstant = loadConstant; //# sourceMappingURL=utils.js.map