UNPKG

micro-zk-proofs

Version:

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

15 lines 572 B
/** * Pedersen Hash over babyjubjub elliptic curve, defined in * [EIP-2494](https://eips.ethereum.org/EIPS/eip-2494). * jubjub - edwards over bls12-381 scalar * babyjubjub - edwards over bn254 scalar * Using scalar as field allows to be used inside of zk-circuits. * @module */ import { type ExtPointType } from '@noble/curves/abstract/edwards'; export declare const Point: { encode(p: any): Uint8Array; decode(bytes: Uint8Array): ExtPointType; }; export declare function pedersenHash(msg: Uint8Array): Uint8Array; //# sourceMappingURL=pedersen.d.ts.map