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

Commit 86493c9

Browse files
committed
thirdparty/fix - ethUtil.sha256 demands a buffer
1 parent 2846ce2 commit 86493c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/thirdparty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Thirdparty.fromKryptoKit = function (entropy, password) {
176176

177177
var privKey
178178
if (type === 'd') {
179-
privKey = ethUtil.sha256(entropy)
179+
privKey = ethUtil.sha256(Buffer.from(entropy))
180180
} else if (type === 'q') {
181181
if (typeof password !== 'string') {
182182
throw new Error('Password required')

0 commit comments

Comments
 (0)