Step 5: Wallet Generation

Once the username is validated and sanitized, DegenDen automatically generates a new Solana wallet for the user.

๐Ÿ”น Generating a Solana Keypair โ€“ Each user receives a unique public and private key pair. ๐Ÿ”น Encrypting the Private Key โ€“ To enhance security, the private key is encrypted before being stored. ๐Ÿ”น Securing User Funds โ€“ The encryption ensures that no unauthorized access can occur.


Storing User Information

DegenDen securely stores only essential user details in the database, including:

  • Username & Chat ID โ€“ For unique identification.

  • Encrypted Private Key โ€“ Ensuring no unauthorized access.

  • Public Key โ€“ Used for receiving funds and transactions.

  • Initial Wallet Balances & Stats โ€“ Default fields such as wallet balance, games played, and winnings are initialized.


Providing Wallet Keys to Users

After successful registration, DegenDen sends the wallet details to the user in a secure message:

๐Ÿ“Œ Public Key โ€“ Displayed for the user to receive funds. ๐Ÿ” Private Key โ€“ Sent securely with a warning never to share it. Losing access to this key means losing access to the wallet.

โš ๏ธ Users are strongly advised to back up their private keys safely!

Last updated