micro-zk-proofs
Version:
Create & verify zero-knowledge SNARK proofs in parallel, using noble cryptography
16 lines • 516 B
TypeScript
/**
* MSM parallel worker, using micro-wrkr.
* @module
*/
import type { Fp2 } from '@noble/curves/abstract/tower';
import { type ProjPointType } from '@noble/curves/abstract/weierstrass';
export type MSMInput<T> = {
point: ProjPointType<T>;
scalar: bigint;
};
export type bn254MSMInput = {
bn254_msmG1: (list: MSMInput<bigint>[]) => ProjPointType<bigint>;
bn254_msmG2: (list: MSMInput<Fp2>[]) => ProjPointType<Fp2>;
};
export type Handlers = bn254MSMInput;
//# sourceMappingURL=msm-worker.d.ts.map