How do I create a wallet given a private key. #457
Unanswered
Gavin-Williams
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is no wallet constructor for when we have a private key. I just don't know how to proceed. I searched for Keypair, but there is no utility class for generating a keypair from a private key.
I'm guessing that you call the private key the 'seed' ? Then I would need a utility function to convert a private key into a byte[] representation of the private key.
Update: I'm going to install the Solana CLI - I bet it's got all sorts of useful tools.
Beta Was this translation helpful? Give feedback.
All reactions