Skip to content

Commit

Permalink
Fix derviedKey Buffer in toV3
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Sep 14, 2020
1 parent 5d21dda commit 9b5f5fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ export default class Wallet {
}

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

return {
version: 3,
Expand Down

0 comments on commit 9b5f5fe

Please # to comment.