Closed coolaj86 closed 1 year ago
should be updated for v2 now
@paulmillr is this solved? I can't find these methods in lib
@headfire94 there are no plans to implement these methods because they look terrible. Users should not even think about "tweaks": instead, there are points and scalars. I consider noble api much more concise. If you want to use these methods, you can implement them for v2 in your own fork.
Also there is no need in re-implementing HD wallet over and over, there's audited http://github.com/paulmillr/scure-bip32 and that's it. You don't need another one. You may need a different lib for different curve.
I'm just documenting this for the sake of anyone else that's updating their HD Wallet libraries: \ (see also #73)
The HD Wallet key functions are in the test files, no the main package.
tweakUtils.privateAdd
is known in other libraries asprivateKeyTweakAdd
tweakUtils.pointAddScalar
is known in other libraries aspublicKeyTweakAdd
Adapted from
./test/index.ts
:https://github.com/paulmillr/noble-secp256k1/blob/e125abdd2f42b2ad4cf5f4a1b7927d7737b7becf/test/index.ts#L466-L492
This may need to be updated again for the upcoming major refactor.