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