UNPKG

micro-zk-proofs

Version:

Create & verify zero-knowledge SNARK proofs in parallel, using noble cryptography

15 lines 597 B
/** * MiMC: Efficient Encryption and Cryptographic * Hashing with Minimal Multiplicative Complexity. * https://eprint.iacr.org/2016/492.pdf * https://crypto.ethereum.org/bounties/mimc-hash-challenge * @module */ export declare function getIV(seed?: string): bigint; export declare function getConstants(seed?: string, nRounds?: number): bigint[]; export declare function hash(L: bigint, R: bigint, k: bigint): { xL: bigint; xR: bigint; }; export declare function multiHash(lst: bigint[], key?: bigint, numOutputs?: number): bigint | bigint[]; //# sourceMappingURL=mimcsponge.d.ts.map