-
Notifications
You must be signed in to change notification settings - Fork 923
(code included) Add getHDKeypairs() #1601
Comments
This would be useful, but needs to clarify where |
Good point Nick. I've updated the example to include the |
I remember there were loads of efforts to move away from the |
Definitely, definitely not, but someone should absolutely release a package that creates the seed as you've outlined above! You can then use that with What we will likely include in web3.js:
Given those two things, anyone can easily build an HD key generator that produces |
If, on the other hand, we can build an HD key generator from the ground up using the |
Things we won't do:
Things we could do:
Feel free to send a PR for that, but I feel like it won't scratch this itch, given that it only solves 1% of the problem. |
Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up. |
Motivation
Solana CLI includes a function to get HD keypairs from a seed. web3.js should do the same.
Example use case
A user wishes to get HD keypairs. They hunt around, and end up getting a code snippet from Solana cookbook or similar. The cookbook asks users to use various magic numbers (
44
,501
and0
), with no explanation so the user isn't confident in the process.Rather than ask every user to copypaste the same snippet, it's better we include this in web3.js.
This code is for both browsers and node so belongs in the main web3.js.
Details
As with the new
getProgramDerivedAddress
we can useget
here - avoiding the need to for users to remember a more specific verb likederive
.The text was updated successfully, but these errors were encountered: