Skip to content

Commit

Permalink
adds bitcoin testnet support
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-at-decenomy committed Oct 5, 2021
1 parent 2d2c145 commit acffdfc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions bitcoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,22 @@ export class Bitcoin extends DSW {
super(bitcoinjs, bip39, bitcoin.networks.bitcoin);
}

}

/**
* Bitcoin.
*
* @class Bitcoin Testnet
* @extends {DSW}
*/
export class BitcoinTestnet extends DSW {

get COIN_TYPE() {
return 0x1;
}

constructor(bitcoinjs, bip39) {
super(bitcoinjs, bip39, bitcoin.networks.testnet);
}

}

0 comments on commit acffdfc

Please sign in to comment.