aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2018-12-05 08:37:36 +1100
committerGitHub <noreply@github.com>2018-12-05 08:37:36 +1100
commit7f65b685b384c48df1b4ea11e7331daf15ec680d (patch)
tree3f835b97ec21398a32c99f81d8b4ad27cd23e82d /src
parent10cf809e7cb3f61927d6d1313072a0323d62d6db (diff)
parentacf4c9b588c6abcc275b4e46df54248a2c913366 (diff)
downloadBIP39-7f65b685b384c48df1b4ea11e7331daf15ec680d.tar.gz
BIP39-7f65b685b384c48df1b4ea11e7331daf15ec680d.tar.zst
BIP39-7f65b685b384c48df1b4ea11e7331daf15ec680d.zip
Merge pull request #281 from Fair-Exchange/master
Added support for Safecoin (SAFE)
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 bd96e05..5ba584e 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1067,6 +1067,17 @@ bitcoinjs.bitcoin.networks.rubycoin = {
1067 wif: 0xbc, 1067 wif: 0xbc,
1068}; 1068};
1069 1069
1070bitcoinjs.bitcoin.networks.safecoin = {
1071 messagePrefix: '\x18Safecoin Signed Message:\n',
1072 bip32: {
1073 public: 0x0488b21e,
1074 private: 0x0488ade4,
1075 },
1076 pubKeyHash: 0x3d,
1077 scriptHash: 0x56,
1078 wif: 0xbd,
1079};
1080
1070bitcoinjs.bitcoin.networks.salus = { 1081bitcoinjs.bitcoin.networks.salus = {
1071messagePrefix: '\x18Salus Signed Message:\n', 1082messagePrefix: '\x18Salus Signed Message:\n',
1072bip32: { 1083bip32: {
diff --git a/src/js/index.js b/src/js/index.js
index 0dd23f3..8322115 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2392,6 +2392,13 @@
2392 }, 2392 },
2393 }, 2393 },
2394 { 2394 {
2395 name: "SAFE - Safecoin",
2396 onSelect: function() {
2397 network = bitcoinjs.bitcoin.networks.safecoin;
2398 setHdCoin(19165);
2399 },
2400 },
2401 {
2395 name: "SLS - Salus", 2402 name: "SLS - Salus",
2396 onSelect: function() { 2403 onSelect: function() {
2397 network = bitcoinjs.bitcoin.networks.salus; 2404 network = bitcoinjs.bitcoin.networks.salus;