aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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();