diff --git a/src/index.ts b/src/index.ts index be34ec3..4a753b4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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,