fixed signing message for DigiByte
authorMatthew Cornelisse <squarerootofnegativeone@gmail.com>
Mon, 20 May 2019 02:35:44 +0000 (21:35 -0500)
committerGitHub <noreply@github.com>
Mon, 20 May 2019 02:35:44 +0000 (21:35 -0500)
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.

src/js/bitcoinjs-extensions.js
src/js/segwit-parameters.js

index d0151db3eeb45848efe0fee020dea00ca47ed1a2..f07eacfa0203a5b8cccd3b4da1b808110818fdba 100644 (file)
@@ -615,7 +615,7 @@ bitcoinjs.bitcoin.networks.diamond = {
 };
 
 bitcoinjs.bitcoin.networks.digibyte = {
-  messagePrefix: '\x18DigiByte Signed Message:\n',
+  messagePrefix: '\x19DigiByte Signed Message:\n',
   bip32: {
     public: 0x0488B21E,
     private: 0x0488ADE4,
index a9bdcbc7f5e79baaa261975c89593510e45fd84c..613ac71341dedd6f5ea9b62d5030aead09007615 100644 (file)
@@ -161,7 +161,7 @@ bitcoinjs.bitcoin.networks.bgold.p2wpkhInP2sh = {
 
 bitcoinjs.bitcoin.networks.digibyte.p2wpkh = {
     baseNetwork: "digibyte",
-    messagePrefix: '\x18DigiByte Signed Message:\n',
+    messagePrefix: 'x19DigiByte Signed Message:\n',
     bech32: 'dgb',
     bip32: {
         public: 0x0488B21E,
@@ -174,7 +174,7 @@ bitcoinjs.bitcoin.networks.digibyte.p2wpkh = {
 
 bitcoinjs.bitcoin.networks.digibyte.p2wpkhInP2sh = {
     baseNetwork: "digibyte",   
-    messagePrefix: '\x18DigiByte Signed Message:\n',
+    messagePrefix: '\x19DigiByte Signed Message:\n',
     bech32: 'dgb',
     bip32: {
         public: 0x0488B21E,