aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorcarsenk <carsenk@gmail.com>2018-03-06 01:11:55 -0700
committercarsenk <carsenk@gmail.com>2018-03-06 01:11:55 -0700
commit40209fd898d628372cd35459aba1d8fc4b9d8758 (patch)
tree0b3dc0f03c4bbf577429a965ed3b50ba0f9dbb89 /src/js
parentfcc7d121097189600a14d5f8247735cc88a9dbb2 (diff)
downloadBIP39-40209fd898d628372cd35459aba1d8fc4b9d8758.tar.gz
BIP39-40209fd898d628372cd35459aba1d8fc4b9d8758.tar.zst
BIP39-40209fd898d628372cd35459aba1d8fc4b9d8758.zip
Add DNR Support
Diffstat (limited to 'src/js')
-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 219395d..47257f1 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -152,6 +152,17 @@ bitcoinjs.bitcoin.networks.dogecoin = {
152 wif: 0x9e 152 wif: 0x9e
153}; 153};
154 154
155bitcoinjs.bitcoin.networks.denarius = {
156 messagePrefix: '\x19Denarius Signed Message:\n',
157 bip32: {
158 public: 0x0488b21e,
159 private: 0x0488ade4
160 },
161 pubKeyHash: 0x1e,
162 scriptHash: 0x5a,
163 wif: 0x9e
164};
165
155bitcoinjs.bitcoin.networks.viacoin = { 166bitcoinjs.bitcoin.networks.viacoin = {
156 messagePrefix: '\x18Viacoin Signed Message:\n', 167 messagePrefix: '\x18Viacoin Signed Message:\n',
157 bip32: { 168 bip32: {
diff --git a/src/js/index.js b/src/js/index.js
index b09a981..a5cfa27 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1551,6 +1551,14 @@
1551 }, 1551 },
1552 }, 1552 },
1553 { 1553 {
1554 name: "DNR - Denarius",
1555 segwitAvailable: false,
1556 onSelect: function() {
1557 network = bitcoinjs.bitcoin.networks.denarius;
1558 setHdCoin(0);
1559 },
1560 },
1561 {
1554 name: "DOGE - Dogecoin", 1562 name: "DOGE - Dogecoin",
1555 segwitAvailable: false, 1563 segwitAvailable: false,
1556 onSelect: function() { 1564 onSelect: function() {