This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ECPair: simplify
fromPrivateKeyBuffer
* Remove buggy precomputation of `__Q` using `fastcurve`. Since `fastcurve` funcs can return `undefined` if the native bindings are unavailable, the `decodeFrom` call could have failed. Instead of precomputing `__Q`, use the existing getter for `Q` and correctly use `fastcurve.publicKeyCreate` there while accounting for an `undefined` return value. * Remove redundant sanity checks that are already performed by the ECPair constructor Issue: BLOCK-261
- Loading branch information
1 parent
30984a9
commit 288f662
Showing
2 changed files
with
4 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters