aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthew Cornelisse <squarerootofnegativeone@gmail.com>2019-05-19 21:35:44 -0500
committerGitHub <noreply@github.com>2019-05-19 21:35:44 -0500
commit6746a9a45e24c6fc0ca1c40b744197418243dc41 (patch)
tree6b64e9bae4376a58936c1fdd4923b593c90bd8a8 /src
parentc768923b775db4de5748367699a01dd0eea3fec3 (diff)
downloadBIP39-6746a9a45e24c6fc0ca1c40b744197418243dc41.tar.gz
BIP39-6746a9a45e24c6fc0ca1c40b744197418243dc41.tar.zst
BIP39-6746a9a45e24c6fc0ca1c40b744197418243dc41.zip
fixed signing message for DigiByte
Not fixed by this pull request because I could not figure out where it is done but like Bitcoin BIP44,BIP49,BIP84 should be xpub,ypub,zpub respectively.
Diffstat (limited to 'src')
-rw-r--r--src/js/bitcoinjs-extensions.js2
-rw-r--r--src/js/segwit-parameters.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index d0151db..f07eacf 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -615,7 +615,7 @@ bitcoinjs.bitcoin.networks.diamond = {
615}; 615};
616 616
617bitcoinjs.bitcoin.networks.digibyte = { 617bitcoinjs.bitcoin.networks.digibyte = {
618 messagePrefix: '\x18DigiByte Signed Message:\n', 618 messagePrefix: '\x19DigiByte Signed Message:\n',
619 bip32: { 619 bip32: {
620 public: 0x0488B21E, 620 public: 0x0488B21E,
621 private: 0x0488ADE4, 621 private: 0x0488ADE4,
diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js
index a9bdcbc..613ac71 100644
--- a/src/js/segwit-parameters.js
+++ b/src/js/segwit-parameters.js
@@ -161,7 +161,7 @@ bitcoinjs.bitcoin.networks.bgold.p2wpkhInP2sh = {
161 161
162bitcoinjs.bitcoin.networks.digibyte.p2wpkh = { 162bitcoinjs.bitcoin.networks.digibyte.p2wpkh = {
163 baseNetwork: "digibyte", 163 baseNetwork: "digibyte",
164 messagePrefix: '\x18DigiByte Signed Message:\n', 164 messagePrefix: 'x19DigiByte Signed Message:\n',
165 bech32: 'dgb', 165 bech32: 'dgb',
166 bip32: { 166 bip32: {
167 public: 0x0488B21E, 167 public: 0x0488B21E,
@@ -174,7 +174,7 @@ bitcoinjs.bitcoin.networks.digibyte.p2wpkh = {
174 174
175bitcoinjs.bitcoin.networks.digibyte.p2wpkhInP2sh = { 175bitcoinjs.bitcoin.networks.digibyte.p2wpkhInP2sh = {
176 baseNetwork: "digibyte", 176 baseNetwork: "digibyte",
177 messagePrefix: '\x18DigiByte Signed Message:\n', 177 messagePrefix: '\x19DigiByte Signed Message:\n',
178 bech32: 'dgb', 178 bech32: 'dgb',
179 bip32: { 179 bip32: {
180 public: 0x0488B21E, 180 public: 0x0488B21E,