aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriancoleman <coleman.ian@gmail.com>2016-08-30 15:49:49 +1000
committerGitHub <noreply@github.com>2016-08-30 15:49:49 +1000
commit694767c01e27c3705e802cf46363fb509e056670 (patch)
tree9bf0dd8ed57e243fdc3c47449646b5b23e2f80c8 /src
parent6848d03ba16685c51d8af454fe3086ebb3e19386 (diff)
parent40150a875fb86178a71d99689a6846bc6436d5a5 (diff)
downloadBIP39-694767c01e27c3705e802cf46363fb509e056670.tar.gz
BIP39-694767c01e27c3705e802cf46363fb509e056670.tar.zst
BIP39-694767c01e27c3705e802cf46363fb509e056670.zip
Merge pull request #29 from dangershony/master
Adding peercoin and namecoin
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();