From 60f3b5bd6b2e79510a8e1be3464281b8ebed305b Mon Sep 17 00:00:00 2001 From: tripathyr Date: Thu, 19 Oct 2023 17:29:22 +0530 Subject: [PATCH] Update floEthereum.js --- scripts/floEthereum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/floEthereum.js b/scripts/floEthereum.js index 8ad1aa5..3c6a0f6 100644 --- a/scripts/floEthereum.js +++ b/scripts/floEthereum.js @@ -16,7 +16,7 @@ const ethAddressFromPrivateKey = floEthereum.ethAddressFromPrivateKey = function t1_x = t1.slice(2, 66); t1_y = t1.slice(-64); if (onlyEvenY) { t1_y_BigInt = BigInt("0x"+t1_y); - if (t1_y_BigInt % 2n !== 0n) { t1_y_BigInt = (groupOrder-t1_y_BigInt)%groupOrder; t1_y=t1_y_BigInt.toString(16) + if (t1_y_BigInt % 2n !== 0n) { t1_y_BigInt = (groupOrder-t1_y_BigInt)%groupOrder; t1_y=t1_y_BigInt.toString(16)} }; t2 = t1_x.toString(16) + t1_y.toString(16);