From 407b849eca55745829c2b9189ba430e030b53b0b Mon Sep 17 00:00:00 2001 From: damartripamungkas Date: Tue, 5 Dec 2023 03:34:01 +0700 Subject: [PATCH] fix: add convert utfBytes for iterations more than 1 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 56a1ce3..14cdeb2 100644 --- a/index.html +++ b/index.html @@ -76,7 +76,7 @@

Custom Key Wallet Crypto

let pk = ethers.keccak256(utfBytes); for (let index = 1; index < iterations; index++) { - pk = ethers.keccak256(pk); + pk = ethers.keccak256(ethers.toUtf8Bytes(pk)); } const { address } = new ethers.Wallet(pk);