import { RadixKeyPair } from '../atom_model'; export default class RadixKeyStore { /** * Store a private key to disk in an encrypted format * @param filePath * @param keyPair * @param password * @returns */ static storeKey(filePath: string, keyPair: RadixKeyPair, password: string): Promise<{}>; /** * Encrypt a private key * @param keyPair * @param password * @returns */ static encryptKey(keyPair: RadixKeyPair, password: string): Promise<{}>; /** * Loads key from encrypted file on disk * @param filePath * @param password * @returns key */ static loadKey(filePath: string, password: string): Promise; /** * Decrypts an encrypted private key * @param fileContents * @param password * @returns key */ static decryptKey(fileContents: any, password: string): Promise; private static calculateMac; }