/// import Wallet, { V3Keystore } from "@etclabscore/ethereumjs-wallet"; /** * Account handles creation and translation of account data */ export declare type WalletType = "non-deterministic" | "deterministic"; export interface SignatoryWallet { type: WalletType; keystore: V3Keystore; uuid: string; name?: string; description?: string; visible: boolean; } export interface AccountData { passphrase: string; name?: string; description?: string; privateKey?: Buffer; } export interface AccountInfo extends Metadata { address: string; type: "non-deterministic"; parent?: string; } export interface WalletInfo extends Metadata { uuid: string; type: "deterministic"; hdPath: string; } export interface Metadata { name?: string; description?: string; type: WalletType; hidden: boolean; } export interface NonDeterministicWallet extends SignatoryWallet { type: "non-deterministic"; address: string; parent?: string; } export interface DeterministicWallet extends SignatoryWallet { type: "deterministic"; nextAccount: number; hdPath: string; } export declare const createDeterministicWallet: (passphrase: string, seed: Buffer, hdPath: string) => DeterministicWallet; export declare const getWallet: (wallet: NonDeterministicWallet | DeterministicWallet, passphrase: string) => Wallet; export declare const getAccountFromHDWallet: (wallet: DeterministicWallet, passphrase: string, index: number) => NonDeterministicWallet; export declare const createNonDeterministicWalletFromKeyfile: (passphrase: string, keyFile: V3Keystore) => NonDeterministicWallet; export declare const createNonDeterministicWallet: (acctDesc: AccountData, parent?: string | undefined) => NonDeterministicWallet; /** * getPrivateKey - creates a new Account and returns a privatekey * @param passphrase - a passphrase of the user's choosing * @param encryptedKey - an encryptedKey that represents the privateKey * @param version - gives the version of the encrypted data, future proofing storage * @returns string - a private key associated with the account */ export declare const exportPrivateKey: (passphrase: string, keystore: V3Keystore) => string; export declare const importPrivateKey: (passphrase: string, privateKey: string) => V3Keystore; export declare const DEFAULT_HD_PATH = "m/44'/60'/0'";