-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: allow skipping public key verification #53
Conversation
#52 is merged; please rebase. |
b108dab
to
df1cabb
Compare
@RyanZim rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK; code looks good. Perhaps we should have a unit test to at least exercise this code path?
@RyanZim I think there's already a unit test included in the PR that covers it. |
🤦♂️ I had seen that earlier, but somehow missed it; must have been just reviewing a later commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Published in v2.1.0 🎉 |
The public key verification is rather slower in a pure JS mode. This PR introduces an argument
skipVerification
tofromExtendedKey()
to allow skipping the verification.$builds on #52
I did some quick benchmarks for thisPR.
elliptic with BN.js: 8x performance increase with
skipVerification
set to true.This allows
fromExtendedKey
to run just as quick as the native performance: