diff --git a/src/wallet/hdwallet.ts b/src/wallet/hdwallet.ts index aa794f93..304cd2bc 100644 --- a/src/wallet/hdwallet.ts +++ b/src/wallet/hdwallet.ts @@ -28,9 +28,6 @@ export abstract class HDWallet { // Map of addresses to address info protected _addresses: Map = new Map(); - // Map of addresses to private keys - protected _privateKeys: Map = new Map(); - // Root node of the HD wallet protected _root: HDNodeWallet; @@ -112,8 +109,6 @@ export abstract class HDWallet { this._addresses.set(neuteredAddressInfo.address, neuteredAddressInfo); - this._privateKeys.set(addressNode.address, addressNode.privateKey); - return neuteredAddressInfo; } @@ -140,7 +135,6 @@ export abstract class HDWallet { zone: zone }; this._addresses.set(neuteredAddressInfo.address, neuteredAddressInfo); - this._privateKeys.set(addressNode.address, addressNode.privateKey); return neuteredAddressInfo; } @@ -187,12 +181,8 @@ export abstract class HDWallet { return (this as any).createInstance(mnemonic); } - // TODO: Implement this method - // static fromExtendedKey(extendedKey: string): HDWallet {} - abstract signTransaction(tx: TransactionRequest): Promise - // TODO: Implement this method abstract sendTransaction(tx: TransactionRequest): Promise connect(provider: Provider): void {