keplr-wallet
keplr-wallet copied to clipboard
Support Agoric Message Rendering
Is your feature request related to a problem? Please describe.
Currently when using agoric dapps, most transactions are rendered as custom messages, e.g:
However, the message itself carries meaning that is not evident from a raw yaml dump. The smart contracting platform guarantees that the "give" specified in the message will only be spent if the "want" is received by the user (see Offer Safety), so it would be beneficial for the user to be able to confirm these details when signing the message.
Describe the solution you'd like
The message renders in a human readable format that makes it clear to the user how the "give" and "want" are specified in the message they sign.
Describe alternatives you've considered
Currently, to make this information clear to the user, we have been using https://wallet.agoric.app/wallet/ as a proxy between the dapps and Keplr. Effectively, the user uses a dapp to send a message to https://wallet.agoric.app/wallet/ over browser storage, the message is reviewed there by the user, and then sent to Keplr to sign. This is a clunky UX and this feature would allow us to remove the proxy and have the dapp use Keplr directly for sigining.
Additional context
Here is the documentation for the process the users currently have to go through with https://wallet.agoric.app/wallet/. This feature would improve this process greatly.