rollupid icon indicating copy to clipboard operation
rollupid copied to clipboard

feat(console|starbase): Smart Contract Wallet for Apps

Open 4x4notfound opened this issue 2 years ago • 1 comments

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.

4x4notfound avatar May 08 '23 15:05 4x4notfound

Figma Link

Preview:

  1. Adding Paymaster Provider Image

  2. Adding Session Key Screenshot 2023-06-27 at 9 43 30

  3. Session Key Revocation Screenshot 2023-06-27 at 9 43 45

picassobanana avatar Jun 22 '23 14:06 picassobanana