@iden3/js-jwz
Version:
JS implementation of JWZ
9 lines (8 loc) • 479 B
TypeScript
import { ZKProof } from './proving';
export declare const Groth16 = "groth16";
export declare const AuthCircuit = "auth";
export declare const AuthV2Circuit = "authV2";
export declare function prove(inputs: Uint8Array, provingKey: Uint8Array, wasm: Uint8Array): Promise<ZKProof>;
export declare function verify<T extends {
challenge: bigint;
}>(messageHash: Uint8Array, proof: ZKProof, verificationKey: Uint8Array, unmarshall: (pubSignals: string[]) => T): Promise<boolean>;