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
feat: add wallet generation and improve local signer UX
- Add POST /api/wallets/generate endpoint that creates a fresh BIP-39 seed phrase and returns the derived address for "Create wallet" flow
- Add `generate_local_wallet()` function to generate 12-word seed phrases with OsRng entropy, deriving account 0 at m/44'/60'/0'/0/0
- Redesign local hot wallet setup with two modes: "Create wallet" (server generates phrase, shown once for backup) and "Import wallet" (paste existing key with warnings)
- Change default local signer from private key to seed phrase at account 0
- Add reveal/hide and copy/download buttons for generated seed phrases on the frontend
- Require explicit backup confirmation checkbox before allowing creation with generated wallet
- Update wizard and signer UI labels from "Signer" to "Wallet" for clarity
- Add seed phrase validation test and round-trip test verifying generated wallets can create bots
- Add `rand` dependency (0.8) for secure entropy generation alongside coins-bip39
- Never store or echo back generated seed phrases server-side; only derived hex keys are persisted
0 commit comments