Skip to content

Commit

Permalink
Update src/derivers/bip39.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
  • Loading branch information
Mrtenz and FrederikBolding authored Nov 25, 2024
1 parent 7227e72 commit d1835b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/derivers/bip39.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ export async function mnemonicToSeed(
passphrase = '',
cryptographicFunctions?: CryptographicFunctions,
) {
const salt = `mnemonic${passphrase}`.normalize('NFKD');
return await pbkdf2Sha512(
encodeMnemonicPhrase(mnemonic, englishWordlist),
stringToBytes(`mnemonic${passphrase}`.normalize('NFKD')),
stringToBytes(salt),
2048,
64,
cryptographicFunctions,
Expand Down

0 comments on commit d1835b3

Please sign in to comment.