-
Notifications
You must be signed in to change notification settings - Fork 9
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
Derive public key from Wallet extended public key without the need of the elliptic
library.
#712
Comments
This would result in being able to remove the dependency |
elliptic
library.elliptic
library.
Experimenting libraries
to provide alternatives to My notes so far:
|
The new implementation is based on noble-hashes library, used for seckp256k1 ECDSA curve, hence
Source of randomness based on |
because refactoring to complex at the moment. |
* refactor: #712 `crypto.js` randomBytes replaced by `secp256k1.randomByte` function * refactor: #712 `crypto.js` randomBytes replaced by `secp256k1.randomByte` function * refactor: #712 `crypto.js` randomBytes replaced by `secp256k1.randomByte` function * refactor: #712 `crypto.js` randomBytes replaced by `secp256k1.randomByte` function * refactor: #712 `crypto.js` randomBytes replaced by `secp256k1.randomByte` function * refactor: #712 `crypto.js` randomBytes replaced by `secp256k1.randomByte` function
The missing function to complete
using the secp256k1 constants provided by the Unfortunately BN and BigInt are prone to time based side channel attack, hence I must derive a better way to decompose the finite field of the elliptic transoformation, working on the base of what published at https://paulmillr.com/posts/noble-secp256k1-fast-ecc/#public-key |
The #105 Try to substitute secp256k1 using noble-secp256k1 moves from
elliptic
lib to the securednoble-curves
lib for cryptographic function.The
elliptic
lib is used only to derive public keys from Wallet HD extended public keys hence no risk of security infringements, but the same functionalities seems to be implemented elsewhere in the SDK.The hdnode.ts code should provide the same functionalities through the
ether
lib without the need of theelliptic
one.The text was updated successfully, but these errors were encountered: