Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanregisser committed Sep 2, 2024
1 parent 68600d9 commit 1324dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ function salt(passphrase: string) {
// - 3+ seconds on a iPhone 13 Pro
// - 10+ seconds on a Pixel 4a
async function _mnemonicToSeed(mnemonic: string, passphrase = '') {
var mnemonicBuffer = Buffer.from(mnemonic, 'utf8')
var saltBuffer = Buffer.from(salt(passphrase), 'utf8')
const mnemonicBuffer = Buffer.from(mnemonic, 'utf8')
const saltBuffer = Buffer.from(salt(passphrase), 'utf8')
return new Promise<Uint8Array>((resolve, reject) =>
crypto.pbkdf2(mnemonicBuffer, saltBuffer, 2048, 64, 'SHA-512', (err, derivedKey) => {
if (err) {
Expand Down

0 comments on commit 1324dbd

Please sign in to comment.