Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roadmapping #1

Open
9 tasks
serapath opened this issue Aug 17, 2019 · 0 comments
Open
9 tasks

roadmapping #1

serapath opened this issue Aug 17, 2019 · 0 comments

Comments

@serapath
Copy link
Member

serapath commented Aug 17, 2019

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant