You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
our wallet wants to derive several accounts at a time. it's more efficient to do the expensive part of stretching the mnemonic into a seed once and allow the library user to get multiple paths' keys from that seed.
interesting, mnemonicToSeed from bip39 looks like it uses @noble sha512 in pbkdf2 https://github.com/bitcoinjs/bip39/blob/v3.1.0/src/index.js#L41 (c: 2048, whatever that parameter is)
derivePath calls derive, and derive calls makeHDKey, and the stuff outside makeHDKey doesn't look like it ought to take 300+ms
and makeHDKey uses js-sha512, if I were to count it out, three calls per path
our wallet wants to derive several accounts at a time. it's more efficient to do the expensive part of stretching the mnemonic into a seed once and allow the library user to get multiple paths' keys from that seed.
Originally posted by @lukaw3d in oasisprotocol/wallet#1454 (comment)
The text was updated successfully, but these errors were encountered: