diff options
author | -k <slowdive@me.com> | 2018-01-06 23:57:11 -0500 |
---|---|---|
committer | -k <slowdive@me.com> | 2018-01-06 23:57:11 -0500 |
commit | cfc0c4d743b1b768888cdd7c1cf25e6c23243a94 (patch) | |
tree | 0999f5ab1506dd57a4f7c63ef82192dbec41fc54 /src | |
parent | de8e5bc11fb7024ee403db7931e3ae082d7f968e (diff) | |
download | BIP39-cfc0c4d743b1b768888cdd7c1cf25e6c23243a94.tar.gz BIP39-cfc0c4d743b1b768888cdd7c1cf25e6c23243a94.tar.zst BIP39-cfc0c4d743b1b768888cdd7c1cf25e6c23243a94.zip |
AXE support
Diffstat (limited to 'src')
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index d788b02..c5dce23 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -108,6 +108,17 @@ bitcoinjs.bitcoin.networks.peercoin = { | |||
108 | wif: 0xb7 | 108 | wif: 0xb7 |
109 | }; | 109 | }; |
110 | 110 | ||
111 | bitcoinjs.bitcoin.networks.axe = { | ||
112 | messagePrefix: 'unused', | ||
113 | bip32: { | ||
114 | public: 0x0488b21e, | ||
115 | private: 0x0488ade4 | ||
116 | }, | ||
117 | pubKeyHash: 0x4B, | ||
118 | scriptHash: 0xCB, // TODO set this correctly | ||
119 | wif: 0x37 | ||
120 | }; | ||
121 | |||
111 | bitcoinjs.bitcoin.networks.slimcoin = { | 122 | bitcoinjs.bitcoin.networks.slimcoin = { |
112 | messagePrefix: 'unused', | 123 | messagePrefix: 'unused', |
113 | bip32: { | 124 | bip32: { |
diff --git a/src/js/index.js b/src/js/index.js index 01543f9..ec73628 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1453,6 +1453,14 @@ | |||
1453 | 1453 | ||
1454 | var networks = [ | 1454 | var networks = [ |
1455 | { | 1455 | { |
1456 | name: "AXE - Axe", | ||
1457 | segwitAvailable: false, | ||
1458 | onSelect: function() { | ||
1459 | network = bitcoinjs.bitcoin.networks.axe; | ||
1460 | setHdCoin(0); | ||
1461 | }, | ||
1462 | }, | ||
1463 | { | ||
1456 | name: "BCH - Bitcoin Cash", | 1464 | name: "BCH - Bitcoin Cash", |
1457 | segwitAvailable: false, | 1465 | segwitAvailable: false, |
1458 | onSelect: function() { | 1466 | onSelect: function() { |