Skip to content

roadmapping #1

@serapath

Description

@serapath

@todo


Most dapps only support one or a few wallets, but users want to use their favorite wallet (e.g. portis, burner, ...) with all dapps out there

solution / proposal

"iframe wallet" could work as follows:
0. [optional] - the user: opens his e.g. walletURL=wallet.html in the browser

  1. the user: opens a dapp in a different browser tab
  2. the dapp: offers a "connect wallet" input field to the user
  3. the user: pastes their walletURL and clicks "connect wallet" button
  4. the dapp: creates an iframe with users src=walletURL (and maybe height:0; width:0;)
  5. the dapp: sends requests to the iframe via .postMessage(msg)
  6. the wallet: the tab or browser window with the users wallet (=wallet.html) prompts the user to confirm interaction with the dapp
  7. the user: confirms on their wallet page (=wallet.html)
  8. the wallet: sends a response to the dapp via .postMessage()
  9. the dapp: receives (=window.onmessage) messages from the wallet in this controlled way

=> communication between dapp and user's wallet goes back and forth as the user navigates

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions