aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCryptarchist <cryptarchist@gmail.com>2019-07-05 18:54:47 +0100
committerCryptarchist <cryptarchist@gmail.com>2019-07-16 13:31:54 +0100
commit67f18e2a637a072bd4fc67f25ce59cff1bd2e3db (patch)
tree45e20656b4e7d3e78214a3f0af5c748b5b172144
parent6aa2c1d26d5d6b9e7156ff2be029efb26c861251 (diff)
downloadBIP39-67f18e2a637a072bd4fc67f25ce59cff1bd2e3db.tar.gz
BIP39-67f18e2a637a072bd4fc67f25ce59cff1bd2e3db.tar.zst
BIP39-67f18e2a637a072bd4fc67f25ce59cff1bd2e3db.zip
Add support for Wagerr
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--tests/spec/tests.js7
3 files changed, 25 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 2443829..3d0c6bd 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1615,3 +1615,14 @@ bitcoinjs.bitcoin.networks.deeponion = {
1615 scriptHash: 0x4E, 1615 scriptHash: 0x4E,
1616 wif: 0x9F, 1616 wif: 0x9F,
1617}; 1617};
1618
1619bitcoinjs.bitcoin.networks.wagerr = {
1620 messagePrefix: 'unused',
1621 bip32: {
1622 public: 0x022d2533,
1623 private: 0x0221312b
1624 },
1625 pubKeyHash: 0x49,
1626 scriptHash: 0x3f,
1627 wif: 0xc7
1628};
diff --git a/src/js/index.js b/src/js/index.js
index 9578146..19c9b84 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2734,6 +2734,13 @@
2734 }, 2734 },
2735 }, 2735 },
2736 { 2736 {
2737 name: "WGR - Wagerr",
2738 onSelect: function() {
2739 network = bitcoinjs.bitcoin.networks.wagerr;
2740 setHdCoin(7825266);
2741 },
2742 },
2743 {
2737 name: "WC - Wincoin", 2744 name: "WC - Wincoin",
2738 onSelect: function() { 2745 onSelect: function() {
2739 network = bitcoinjs.bitcoin.networks.wincoin; 2746 network = bitcoinjs.bitcoin.networks.wincoin;
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index f69bca6..0634c8f 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1529,6 +1529,13 @@ it('Allows selection of Stellar', function(done) {
1529 }; 1529 };
1530 testNetwork(done, params); 1530 testNetwork(done, params);
1531}); 1531});
1532it('Allows selection of Wagerr', function(done) {
1533 var params = {
1534 selectText: "WGR - Wagerr",
1535 firstAddress: "WYiVgQU39VcQxcnacoCiaZHZZLjDCJoS95",
1536 };
1537 testNetwork(done, params);
1538});
1532 1539
1533// BIP39 seed is set from phrase 1540// BIP39 seed is set from phrase
1534it('Sets the bip39 seed from the prhase', function(done) { 1541it('Sets the bip39 seed from the prhase', function(done) {