Page MenuHomePhabricator

[ecash-lib] Add `pbkdf2`
AcceptedPublic

Authored by tobias_ruck on Thu, Jan 30, 03:56.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Summary

This is used to hash a "seed" from a mnemonic (seed phrase).

Depends on D17609.

Test Plan

npm test

Event Timeline

bytesofman added inline comments.
This revision now requires changes to proceed.Thu, Jan 30, 18:37
tobias_ruck added inline comments.
modules/ecash-lib/src/pbkdf2.test.ts
37

oh, here I reduced the number of iterations from 80000 to 8000

the test would run for 1200ms otherwise—if that's fine I can bump it, or change it to a iteration count that's not so similar.

I suspect the solution here is not as optimized as the the one from noble. Maybe we should move it to Rust entirely (but maybe not now)

This revision is now accepted and ready to land.Thu, Jan 30, 22:41