Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 9b5f5fe

Browse files
Fix derviedKey Buffer in toV3
1 parent 5d21dda commit 9b5f5fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ export default class Wallet {
599599
}
600600

601601
const ciphertext = runCipherBuffer(cipher, this.privKey)
602-
const mac = keccak256(Buffer.concat([derivedKey.slice(16, 32), Buffer.from(ciphertext)]))
602+
const mac = keccak256(Buffer.concat([Buffer.from(derivedKey.slice(16, 32)), Buffer.from(ciphertext)]))
603603

604604
return {
605605
version: 3,

0 commit comments

Comments
 (0)