Skip to content

Commit

Permalink
fix wrapped-node typings
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelFedora committed Aug 5, 2019
1 parent 910e918 commit 6c28fc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/data/wrapped-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ECPair } from 'bitcoinjs-lib';
import * as bip32 from 'bip32';
import { BIP32Interface } from 'bip32';

export class WrappedNode {
export class WrappedNode implements BIP32Interface {

private _node: BIP32Interface;
private _keyPair: ECPair;
Expand Down Expand Up @@ -43,6 +43,7 @@ export class WrappedNode {
public get keyPair() { return this._keyPair; }
public getAddress() { return getAddress(this._node); }

public get lowR() { return this._node.lowR; }
public get chainCode() { return this._node.chainCode; }
public get depth() { return this._node.depth; }
public get index() { return this._node.index; }
Expand Down

0 comments on commit 6c28fc1

Please sign in to comment.