-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add Signer to Api #660
Comments
First going to comment on the signatures: they certainly a bit messy atm, we are not quite happy, but it is moving towards being more useful. We just always try to keep backwards compat, so happy with changes that cleans up the code as long as it does not affect downstream users. Honestly, have not considered the signers up to now, which is certainly a gap. (The apps UI manages this by putting stuff on a queue when sent - which is not great) So happy to look at any suggestions in this area, it is certainly something that needs to be addressed. We should probably keep the signature as you suggested as a last point - would just allow TL;DR good idea, we certainly need support sooner rather than later EDIT: Re-wrote since some stuff (commented on via phone, was a bit less than sensical) |
Closed in #662 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
As a dapp, it doesn't always have access to key pair. Key pairs could be managed in a browser extension or hardware wallet. So I propose to introduce signer to api and let it do the signing. This will allow our browser extension to work with the api by exposing a signer into browser's global.
signAndSend is the place to use the signer. I prefer to changing the signature to below which looks more neat
though to keep backward compatible, it could also be like:
I would like to hear from you if it's the right direction before submitting my PR.
The text was updated successfully, but these errors were encountered: