rollupid
rollupid copied to clipboard
feat(console|starbase): Smart Contract Wallet for Apps
Finalization of design depends on info coming out of #2329
Why
To help developers manage costs they can choose to setup a SCW for their app. With this SCW they can still fund txns on behalf of their users to their EOA wallets.
What
Through the Console blockchain settings they should be able to create the wallet and session key (as API key) for this wallet.
They should then copy these credentials and use them offline in their apps to manage transactions. With this they can use their SCW to perform a txn and use the "toAddress" as EOAs account users provide with the connected_accounts scope
How
- [ ] App SCW config section in console app blockchain table to generate the smart contract wallet
- [ ] Generate a SCW wallet owner in the app.
- [ ] Generate the SCW wallet address.
- [ ] Generate and random "session key wallet" on the client. Register a session key for the SCW using new "session key wallet"
- [ ] Display the private and public key of the session key wallet as well as the session key data post registration.