We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@todo
wallet#2
.postMessage()
wallet#3
wallet#4
wallet#5
wallet#6
wallet#7
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
"iframe wallet" could work as follows: 0. [optional] - the user: opens his e.g. walletURL=wallet.html in the browser
walletURL=wallet.html
the user
the dapp
walletURL
src=walletURL
height:0; width:0;
.postMessage(msg)
the wallet
wallet.html
window.onmessage
=> communication between dapp and user's wallet goes back and forth as the user navigates
The text was updated successfully, but these errors were encountered:
No branches or pull requests
@todo
wallet#2
- what is the message format used to communicate directly over.postMessage()
?wallet#3
- whats the minimum functionality a wallet needs to support to "allow features" & which "atomic" features exist today that wallets should or can support and how do they work?wallet#4
- how do people implement and specify new features a wallet and dapp could support?wallet#5
- how to grant/revoke permissions?wallet#6
- how to manage permissions?wallet#7
- profile avatarsMost 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 browserthe user
: opens a dapp in a different browser tabthe dapp
: offers a "connect wallet" input field to the userthe user
: pastes theirwalletURL
and clicks "connect wallet" buttonthe dapp
: creates an iframe with userssrc=walletURL
(and maybeheight:0; width:0;
)the dapp
: sends requests to the iframe via.postMessage(msg)
the wallet
: the tab or browser window with the users wallet (=wallet.html
) prompts the user to confirm interaction with the dappthe user
: confirms on their wallet page (=wallet.html
)the wallet
: sends a response to the dapp via .postMessage()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
The text was updated successfully, but these errors were encountered: