aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0de9fa8..a3f86cf 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1407,4 +1407,15 @@ bitcoinjs.bitcoin.networks.projectcoin = {
1407 pubKeyHash: 0x37, 1407 pubKeyHash: 0x37,
1408 scriptHash: 0x08, 1408 scriptHash: 0x08,
1409 wif: 0x75, 1409 wif: 0x75,
1410};
1411
1412bitcoinjs.bitcoin.networks.phore = {
1413 messagePrefix: '\x18Phore Signed Message:\n',
1414 bip32: {
1415 public: 0x022D2533,
1416 private: 0x0221312B,
1417 },
1418 pubKeyHash: 0x37,
1419 scriptHash: 0x0D,
1420 wif: 0xD4,
1410}; \ No newline at end of file 1421}; \ No newline at end of file
diff --git a/src/js/index.js b/src/js/index.js
index 5d031b2..f33d025 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2263,6 +2263,13 @@
2263 setHdCoin(174); 2263 setHdCoin(174);
2264 }, 2264 },
2265 }, 2265 },
2266 {
2267 name: "PHR - Phore",
2268 onSelect: function() {
2269 network = bitcoinjs.bitcoin.networks.phore;
2270 setHdCoin(444);
2271 },
2272 },
2266 { 2273 {
2267 name: "PINK - Pinkcoin", 2274 name: "PINK - Pinkcoin",
2268 onSelect: function() { 2275 onSelect: function() {
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 2b40fcf..b1308fb 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1341,6 +1341,13 @@ it('Allows selection of ProjectCoin', function(done) {
1341 }; 1341 };
1342 testNetwork(done, params); 1342 testNetwork(done, params);
1343}); 1343});
1344it('Allows selection of Phore', function(done) {
1345 var params = {
1346 selectText: "PHR - Phore",
1347 firstAddress: "PJThxpoXAG6hqrmdeQQbVDX4TJtFTMMymC",
1348 };
1349 testNetwork(done, params);
1350});
1344 1351
1345// BIP39 seed is set from phrase 1352// BIP39 seed is set from phrase
1346it('Sets the bip39 seed from the prhase', function(done) { 1353it('Sets the bip39 seed from the prhase', function(done) {