bitcoinx / colored-coin-tools

22 stars 7 forks source link

bitcoinjs-lib: fix testnet address #1

Closed killerstorm closed 11 years ago

killerstorm commented 11 years ago

Address version is hardcoded to 0x00, but we need 0x6f for testnet:

https://github.com/killerstorm/bitcoinjs-lib/blob/master/src/address.js#L7

The task is to find a way to identify whether we are on testnet. Possibly through introduction of a global variable.

Change needs to be synchronized with bitcoinjs-gui, i.e.bitcoinjs-gui initialization routine might set this global variable depending on configuration

Bounty: 0.2 BTC

katuma commented 11 years ago

See katuma/bitcoinjs-lib@9119b12 and katuma/bitcoinjs-gui@0e69dfe540eca84d2f65e98ba86fe9d44e23a8b1