Ensure wallets store encrypted private keys

This commit is contained in:
Alexa Amundson
2025-11-16 04:35:23 -06:00
parent 902e21b760
commit e336147dcf
4 changed files with 65 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ async def register(user_data: UserCreate, db: AsyncSession = Depends(get_db)):
wallet = Wallet(
user_id=user.id,
address=wallet_address,
private_key=private_key,
private_key=encrypted_private_key,
public_key=public_key,
balance=user.balance,
label="Primary Wallet",