aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2018-10-15 11:29:27 +1100
committerGitHub <noreply@github.com>2018-10-15 11:29:27 +1100
commit64425922ae0e36dc31565384c03a005cd5894632 (patch)
treeb10fc53875cab44689355aec6a22f9ad4cdd62b4 /src
parent8a516f55299a5a89dbd4e74b9927737feca460aa (diff)
parentcd4425ece76bec344b4dfdda27adcf634a1e02bb (diff)
downloadBIP39-64425922ae0e36dc31565384c03a005cd5894632.tar.gz
BIP39-64425922ae0e36dc31565384c03a005cd5894632.tar.zst
BIP39-64425922ae0e36dc31565384c03a005cd5894632.zip
Merge pull request #263 from skironDotNet/bitcoin-green
Added Bitcoin Green
Diffstat (limited to 'src')
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
2 files changed, 18 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 579c9d0..fef567a 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1376,6 +1376,17 @@ bitcoinjs.bitcoin.networks.artax = {
1376 wif: 0x97, 1376 wif: 0x97,
1377}; 1377};
1378 1378
1379bitcoinjs.bitcoin.networks.bitcoingreen = {
1380 messagePrefix: '\x18BitcoinGreen Signed Message:\n',
1381 bip32: {
1382 public: 0x0488B21E,
1383 private: 0x0488ADE4,
1384 },
1385 pubKeyHash: 0x26,
1386 scriptHash: 0x1CBD,
1387 wif: 0x2E,
1388};
1389
1379bitcoinjs.bitcoin.networks.anon = { 1390bitcoinjs.bitcoin.networks.anon = {
1380 messagePrefix: '\x18ANON Signed Message:\n', 1391 messagePrefix: '\x18ANON Signed Message:\n',
1381 bip32: { 1392 bip32: {
diff --git a/src/js/index.js b/src/js/index.js
index 1fc0586..85639a0 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1737,6 +1737,13 @@
1737 setHdCoin(1); 1737 setHdCoin(1);
1738 }, 1738 },
1739 }, 1739 },
1740 {
1741 name: "BITG - Bitcoin Green",
1742 onSelect: function() {
1743 network = bitcoinjs.bitcoin.networks.bitcoingreen;
1744 setHdCoin(222);
1745 },
1746 },
1740 { 1747 {
1741 name: "BTCP - Bitcoin Private", 1748 name: "BTCP - Bitcoin Private",
1742 onSelect: function() { 1749 onSelect: function() {