PHP WebShell
Текущая директория: /opt/BitGoJS/modules/sdk-lib-mpc/dist/src/tss/ecdsa
Просмотр файла: paillierproof.d.ts
export declare const alpha = 319567;
export declare const m: number;
/**
* Generate a set of challenges $p$ for a given paillier public key modulus $n$.
* @param n - paillier public key modulus
* @returns {Promise<Array<bigint>>} - array of challenges $p_i$
*/
export declare function generateP(n: bigint): Promise<Array<bigint>>;
/**
* Generate a set of proofs $sigma$ for a given set of challenges $p$ using the paillier public key modulus $n$ and the private key $\lambda$.
* @param n - paillier public key modulus $n$
* @param lambda - private key $\lambda, which is the $\euler(N) = (p-1)(q-1)$
* @param p - array of challenges $p$
* @returns {Promise<Array<bigint>>} - array of proofs $\sigma$
*/
export declare function prove(n: bigint, lambda: bigint, p: Array<bigint>): bigint[];
/**
* Verify a set of proofs $\sigma$ on the modulus $n$ using the challenges $p$ that were provided to the prover to generate the proofs.
* @param n - paillier public key modulus $n$
* @param p - array of challenges $p$
* @param sigma - array of proofs $\sigma$
*/
export declare function verify(n: bigint, p: Array<bigint>, sigma: Array<bigint>): boolean;
//# sourceMappingURL=paillierproof.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!