20 lines
408 B
TypeScript
20 lines
408 B
TypeScript
export class DeterministicWallet {
|
|
protected address: string;
|
|
protected dPath: string;
|
|
protected index: number;
|
|
|
|
constructor(address: string, dPath: string, index: number) {
|
|
this.address = address;
|
|
this.dPath = dPath;
|
|
this.index = index;
|
|
}
|
|
|
|
public getAddressString(): string {
|
|
return this.address;
|
|
}
|
|
|
|
public getPath(): string {
|
|
return `${this.dPath}/${this.index}`;
|
|
}
|
|
}
|