From a102f5225b20c9a12aad2d2271d029d0e512523b Mon Sep 17 00:00:00 2001 From: sairajzero Date: Mon, 20 Feb 2023 05:02:43 +0530 Subject: [PATCH] floCrypto v2.3.4a: bug fix - Fixed: verifyPrivKey incorrectly returning false when pubkey is lowercase. (pubkey hex is case-insensitive) --- floCrypto.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/floCrypto.js b/floCrypto.js index 5e8376f..19ffedc 100644 --- a/floCrypto.js +++ b/floCrypto.js @@ -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;