export declare type KeyPair = { publicKey: string; privateKey: string; }; export default class Tools { /** * Converts VASP Smart Contract addres to code. * * @param _address VASP Smart Contract address to be converted. * @returns VASP Code corresponding to the address * */ static addressToVaspCode(_address: string): string; /** * Checks is VAAN is well formed * * @param _vaan */ static checkVaan(_vaan: string): void; /** * Gets the VASP Code from the VAAN (first 4 bytes) * * @param _vaan */ static vaspCodeFromVaan(_vaan: string): string; /** * Generate public and private key * */ static generateKeyPair(): KeyPair; /** * Get PublicKey from Private Key * * @param _privKey */ static publicFromPrivateKey(_privKey: string): string; /** * Symmetric ECDH key derivation * * @param _publicKeyA * @param _privateKeyB */ static deriveSharedKey(_publicKeyA: string, _privateKeyB: string): string; static jsonToHex(_jsonMsg: any): string; static hexToJson(_hexStr: string): any; static sign(_msgHex: string, _privKey: string): any; static signWeb3(_msg: string, _privKey: string): any; static randomVASPCode(): string; }