import { InitInput } from "./pkg/mpc_wasm"; import { LoadOptions, MultiKeypair, MultiSignLocalParams, MultiSignParams } from "./types"; export declare const setWasmInit: (arg: () => InitInput) => void; export declare class SafematrixAuthMultiMpc { static initialize: (options?: LoadOptions) => Promise; /** * Generate uuid * @returns uuid */ static uuid(): string; /** * generate mpc keypairs * @param thread mpc thread value * @param total mpc total value * @param engine 'ECDSA' | 'BLS' | 'SCHNORR' * @returns */ generate(thread: number, total: number, engine?: string): Promise; /** * sign message with mpc public key * @param params sign params */ sign(params: MultiSignParams): Promise; localSign(params: MultiSignLocalParams, engine?: string): Promise; /** * recover key * @param keypairs remote share && backup share * @param aux local share aux */ recover(keypairs: MultiKeypair[], aux: string): MultiKeypair[]; /** * get address from keypair * @param key Keypair * @returns */ address(key: MultiKeypair, engine?: string): string; /** * export private key * @param keys local share & remote share * @returns */ secretKey(keys: MultiKeypair[], engine?: string): string; /** * generate remote share * @param keypair remote share * @returns */ static auxToKeypair(keypair: MultiKeypair): string; }