Swap-Aggregator-Subgraph/node_modules/asmcrypto.js/dist_es8/rsa/rsa.d.ts
2022-07-03 07:27:35 +05:30

19 lines
412 B
TypeScript
Executable File

import { BigNumber, Modulus } from '../bignum/bignum';
export declare type key = {
0: Modulus;
1: BigNumber;
2?: BigNumber;
3?: Modulus;
4?: Modulus;
5?: BigNumber;
6?: BigNumber;
7?: BigNumber;
};
export declare class RSA {
readonly key: key;
result: Uint8Array;
constructor(key: Uint8Array[]);
encrypt(msg: BigNumber): this;
decrypt(msg: BigNumber): this;
}