mirror of
https://github.com/embarklabs/ethereumjs-wallet.git
synced 2025-01-30 12:26:18 +00:00
Remove excess parameter from decipherBuffer
This commit is contained in:
parent
3927a0e540
commit
dd2a4b826e
@ -277,7 +277,7 @@ Wallet.fromV3 = function (input, password, nonStrict) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var decipher = crypto.createDecipheriv(json.crypto.cipher, derivedKey.slice(0, 16), Buffer.from(json.crypto.cipherparams.iv, 'hex'))
|
var decipher = crypto.createDecipheriv(json.crypto.cipher, derivedKey.slice(0, 16), Buffer.from(json.crypto.cipherparams.iv, 'hex'))
|
||||||
var seed = decipherBuffer(decipher, ciphertext, 'hex')
|
var seed = decipherBuffer(decipher, ciphertext)
|
||||||
|
|
||||||
return new Wallet(seed)
|
return new Wallet(seed)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user