aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2017-11-15 08:53:25 +1100
committerGitHub <noreply@github.com>2017-11-15 08:53:25 +1100
commit107edb3454aa693c01f19a08bfcf09c2f3f121f9 (patch)
tree371ae8d458e827dc9e4748463a6761f39e91b32a /src
parentb57b721e2cec18e0df07f1e35e1e72852f51bec4 (diff)
parent214c584c4007f6fddb1a1497c0786adefc7b8207 (diff)
downloadBIP39-107edb3454aa693c01f19a08bfcf09c2f3f121f9.tar.gz
BIP39-107edb3454aa693c01f19a08bfcf09c2f3f121f9.tar.zst
BIP39-107edb3454aa693c01f19a08bfcf09c2f3f121f9.zip
Merge pull request #126 from monautils/master
add monacoin
Diffstat (limited to 'src')
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js8
2 files changed, 19 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 388dd0b..be73354 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -262,6 +262,17 @@ bitcoinjs.bitcoin.networks.bitcoinCashBitbpay = {
262 wif: 0x80 262 wif: 0x80
263}; 263};
264 264
265bitcoinjs.bitcoin.networks.monacoin = {
266 messagePrefix: '\x18Monacoin Signed Message:\n',
267 bip32: {
268 public: 0x0488b21e,
269 private: 0x0488ade4
270 },
271 pubKeyHash: 0x32,
272 scriptHash: 0x37,
273 wif: 0xb0
274};
275
265bitcoinjs.bitcoin.networks.bitcoinBip49 = { 276bitcoinjs.bitcoin.networks.bitcoinBip49 = {
266 messagePrefix: '\x18Bitcoin Signed Message:\n', 277 messagePrefix: '\x18Bitcoin Signed Message:\n',
267 bip32: { 278 bip32: {
diff --git a/src/js/index.js b/src/js/index.js
index f38aa3c..8146f11 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1510,6 +1510,14 @@
1510 network = bitcoinjs.bitcoin.networks.bitcoin; 1510 network = bitcoinjs.bitcoin.networks.bitcoin;
1511 setHdCoin(144); 1511 setHdCoin(144);
1512 }, 1512 },
1513 },
1514 {
1515 name: "MONA - Monacoin",
1516 p2wpkhNestedInP2shAvailable: true,
1517 onSelect: function() {
1518 network = bitcoinjs.bitcoin.networks.monacoin,
1519 setHdCoin(22);
1520 },
1513 } 1521 }
1514 ] 1522 ]
1515 1523