micro-zk-proofs
Version:
Create & verify zero-knowledge SNARK proofs in parallel, using noble cryptography
14 lines • 721 B
TypeScript
/**
* MSM - Multi Scalar Multiplication. Done in parallel using micro-wrkr.
* MSM is a fast algorithm to add & multiply many elliptic curve points at once.
* @module
*/
import { type IField } from '@noble/curves/abstract/modular';
import { type ProjConstructor, type ProjPointType } from '@noble/curves/abstract/weierstrass';
import { type MSMInput } from './msm-worker.ts';
export declare function initMSM(): {
methods: any;
terminate: () => void;
};
export declare function modifyArgs<T>(field: IField<bigint>, point: ProjConstructor<T>, fn: (input: MSMInput<T>[]) => Promise<ProjPointType<T>>): (points: ProjPointType<T>[], scalars: bigint[]) => Promise<ProjPointType<T>>;
//# sourceMappingURL=msm.d.ts.map