aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordangershony <dan.gershony@gmail.com>2016-08-25 16:21:41 +0100
committerdangershony <dan.gershony@gmail.com>2016-08-25 16:21:41 +0100
commit07ac4350eec471d9b7f16182a5009df8b6d8f28e (patch)
tree4766b2b7e2fde4f83384106858817344bd8e5e02 /src
parent3821c0d34596dbbf7ff1ba9ce02b54ca4e0d9fda (diff)
downloadBIP39-07ac4350eec471d9b7f16182a5009df8b6d8f28e.tar.gz
BIP39-07ac4350eec471d9b7f16182a5009df8b6d8f28e.tar.zst
BIP39-07ac4350eec471d9b7f16182a5009df8b6d8f28e.zip
namecoin and peercoin
Diffstat (limited to 'src')
-rw-r--r--src/js/bitcoinjs-extensions.js20
-rw-r--r--src/js/index.js14
2 files changed, 34 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 9f11de8..b02d79f 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -45,3 +45,23 @@ bitcoin.networks.dash = {
45 wif: 0xcc, 45 wif: 0xcc,
46}; 46};
47 47
48bitcoin.networks.namecoin = {
49 bip32: {
50 public: 0x0488b21e,
51 private: 0x0488ade4
52 },
53 pubKeyHash: 0x34,
54 //scriptHash: 0x10,
55 wif: 0x80,
56};
57
58bitcoin.networks.peercoin = {
59 bip32: {
60 public: 0x0488b21e,
61 private: 0x0488ade4
62 },
63 pubKeyHash: 0x37,
64 //scriptHash: 0x10,
65 wif: 0xb7,
66};
67
diff --git a/src/js/index.js b/src/js/index.js
index 5cd09b6..69f5eab 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -587,6 +587,20 @@
587 DOM.bip44coin.val(5); 587 DOM.bip44coin.val(5);
588 }, 588 },
589 }, 589 },
590 {
591 name: "Namecoin",
592 onSelect: function() {
593 network = bitcoin.networks.namecoin;
594 DOM.bip44coin.val(7);
595 },
596 },
597 {
598 name: "Peercoin",
599 onSelect: function() {
600 network = bitcoin.networks.peercoin;
601 DOM.bip44coin.val(6);
602 },
603 },
590 ] 604 ]
591 605
592 init(); 606 init();