floCrypto v2.3.4a: bug fix
- Fixed: verifyPrivKey incorrectly returning false when pubkey is lowercase. (pubkey hex is case-insensitive)
This commit is contained in:
parent
2e0846edc4
commit
a102f5225b
@ -1,4 +1,4 @@
|
||||
(function (EXPORTS) { //floCrypto v2.3.4
|
||||
(function (EXPORTS) { //floCrypto v2.3.4a
|
||||
/* FLO Crypto Operators */
|
||||
'use strict';
|
||||
const floCrypto = EXPORTS;
|
||||
@ -222,7 +222,7 @@
|
||||
key.setCompressed(true);
|
||||
if (isfloID && pubKey_floID == key.getBitcoinAddress())
|
||||
return true;
|
||||
else if (!isfloID && pubKey_floID == key.getPubKeyHex())
|
||||
else if (!isfloID && pubKey_floID.toUpperCase() == key.getPubKeyHex().toUpperCase())
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user