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

Consider HW Wallets for signTypedMessage #5792

Merged
merged 3 commits into from
Nov 26, 2018

Conversation

brunobar79
Copy link
Contributor

@brunobar79 brunobar79 commented Nov 20, 2018

That feature it's not currently supported on Ledger or Trezor but the current implementation of signedTypedData was reading private keys from the keyring, which is a private method and not supported on the HW wallet keyrings.

This PR handles both scenarios separately and at least now we will fail with the right error message:

  • Not supported in this device

Once the hw wallets gets support, we should have to just update the keyring without need of touching the extension.

Fixes #5319

BEFORE:
screen shot 2018-11-20 at 12 48 04 pm

AFTER:
screen shot 2018-11-20 at 12 45 01 pm

@brunobar79 brunobar79 requested review from bitpshr, danfinlay and whymarrh and removed request for bitpshr and danfinlay November 20, 2018 17:52
@brunobar79 brunobar79 changed the title consider hw wallets for signTypedData consider hw wallets for signTypedMessage Nov 20, 2018
@brunobar79 brunobar79 changed the title consider hw wallets for signTypedMessage Consider HW Wallets for signTypedMessage Nov 20, 2018
@brunobar79 brunobar79 changed the title Consider HW Wallets for signTypedMessage consider hw wallets for signTypedData Nov 20, 2018
@brunobar79 brunobar79 changed the title consider hw wallets for signTypedData Consider HW Wallets for signTypedMessage Nov 20, 2018
@metamaskbot
Copy link
Collaborator

Builds ready [fb94c1b]: mascara, chrome, firefox, edge, opera

bitpshr
bitpshr previously approved these changes Nov 25, 2018
@brunobar79
Copy link
Contributor Author

@bitpshr @whymarrh Thanks for the review! Just addressed the comment, so you can take a look again whenever you have a chance.

@metamaskbot
Copy link
Collaborator

Builds ready [f206643]: mascara, chrome, firefox, edge, opera

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

Successfully merging this pull request may close these issues.

4 participants