You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
Is your feature request related to a problem? Please describe.
Yes, the current SolDev documentation lacks a clear guide on how to import a keypair from a private key or mnemonic phrase. This gap can be frustrating for developers looking to integrate existing wallets into Solana applications or for those who need to securely generate keypairs from existing credentials.
Describe the solution you'd like
I propose adding a detailed tutorial to the SolDev documentation that covers the following topics:
Importing from a Private Key: Instructions on converting a Base58 encoded private key string into a Uint8Array, and then using this byte array to generate a Keypair object. This section should include examples using @solana/web3.js and emphasize security best practices to avoid exposing private keys.
Importing from a Mnemonic Phrase: A guide on converting a mnemonic phrase into a keypair, highlighting the secure use of libraries like bip39 and @solana/web3.js's Keypair.fromSeed method. This should also include example code and step-by-step instructions.
Describe alternatives you've considered
An alternative could be community-generated tutorials or external documentation; however, having official documentation ensures accuracy, security, and ease of access for developers.
Additional context
Adding these tutorials will not only fill a crucial gap in the documentation but also enhance the overall developer experience within the Solana ecosystem. It will provide a one-stop guide for developers to securely integrate and manage keypairs, which is fundamental for building decentralized applications on Solana.