import { Wallet } from "ethereumjs-wallet/hdkey"; export interface IReflauntWallet { id: number; address: string; wallet: Wallet; } export class ReflauntWallet implements IReflauntWallet { address: string; id: number; wallet: Wallet; get privateKey() { return this.wallet.getPrivateKey().toString('hex'); } constructor(init: IReflauntWallet) { Object.assign(this, init); } }