aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2018-11-21 21:46:06 +1100
committerGitHub <noreply@github.com>2018-11-21 21:46:06 +1100
commit20d077e3afb0f34f437f033aaf016df0076b2bec (patch)
treec47c6117f0161e74bf813b2574664dcebd9c0b37 /src/js
parent3e4551b0822de0ed41f5d6a31722450864d9ad2c (diff)
parent6f4358175204c2288953fa1178ee751c5e69cd1c (diff)
downloadBIP39-20d077e3afb0f34f437f033aaf016df0076b2bec.tar.gz
BIP39-20d077e3afb0f34f437f033aaf016df0076b2bec.tar.zst
BIP39-20d077e3afb0f34f437f033aaf016df0076b2bec.zip
Merge pull request #273 from CCob/master
Added support for Blocknode
Diffstat (limited to 'src/js')
-rw-r--r--src/js/bitcoinjs-extensions.js22
-rw-r--r--src/js/index.js14
2 files changed, 36 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 271dbce..bd96e05 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1429,4 +1429,26 @@ bitcoinjs.bitcoin.networks.phore = {
1429 pubKeyHash: 0x37, 1429 pubKeyHash: 0x37,
1430 scriptHash: 0x0D, 1430 scriptHash: 0x0D,
1431 wif: 0xD4, 1431 wif: 0xD4,
1432};
1433
1434bitcoinjs.bitcoin.networks.blocknode = {
1435 messagePrefix: '\x18Blocknode Signed Message:\n',
1436 bip32: {
1437 public: 0x0488b21e,
1438 private: 0x0488ade4
1439 },
1440 pubKeyHash: 0x19,
1441 scriptHash: 0x3F,
1442 wif: 0x4b,
1443};
1444
1445bitcoinjs.bitcoin.networks.blocknode_testnet = {
1446 messagePrefix: '\x18Blocknode Testnet Signed Message:\n',
1447 bip32: {
1448 public: 0x043587cf,
1449 private: 0x04358394
1450 },
1451 pubKeyHash: 0x55,
1452 scriptHash: 0x7d,
1453 wif: 0x89,
1432}; \ No newline at end of file 1454}; \ No newline at end of file
diff --git a/src/js/index.js b/src/js/index.js
index de509e8..0dd23f3 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1703,6 +1703,20 @@
1703 }, 1703 },
1704 }, 1704 },
1705 { 1705 {
1706 name: "BND - Blocknode",
1707 onSelect: function() {
1708 network = bitcoinjs.bitcoin.networks.blocknode;
1709 setHdCoin(2941);
1710 },
1711 },
1712 {
1713 name: "tBND - Blocknode Testnet",
1714 onSelect: function() {
1715 network = bitcoinjs.bitcoin.networks.blocknode_testnet;
1716 setHdCoin(1);
1717 },
1718 },
1719 {
1706 name: "BRIT - Britcoin", 1720 name: "BRIT - Britcoin",
1707 onSelect: function() { 1721 onSelect: function() {
1708 network = bitcoinjs.bitcoin.networks.britcoin; 1722 network = bitcoinjs.bitcoin.networks.britcoin;