MyCrypto/common/libs/wallet/deterministic.ts
skubakdj aac0176ca2 Wallet Decrypt - Ledger (#238)
* add static vendor js libraries

* add ledger config

* add ledger components

* add ledger wallet

* bugfix: trezor, set dPath on change

* add rlp type package, update types

* change address to public

* update tslint script to exclude all files in directory

* revert to private address and use getAddress()

* remove unnecessary eslint line out of library files

* remove IWallet import

* Fix ts errors

* Remove version controlled vendor files from DLL
2017-10-05 16:29:14 -07:00

20 lines
430 B
TypeScript

export default class DeterministicWallet {
private address: string;
private dPath: string;
private index: number;
constructor(address: string, dPath: string, index: number) {
this.address = address;
this.dPath = dPath;
this.index = index;
}
public getAddress(): Promise<string> {
return Promise.resolve(this.address);
}
public getPath(): string {
return `${this.dPath}/${this.index}`;
}
}