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

Move signTypedData signing out to keyrings #7304

Merged
merged 5 commits into from
Oct 23, 2019

Conversation

danfinlay
Copy link
Contributor

@danfinlay danfinlay commented Oct 22, 2019

This simplifies the logic of signing and improves security, and makes the signTypedData implementation more consistent with the other signing methods:

  • Private keys are never moved to the base controller.
  • Hardware wallets are abstracted in the same way as local keys.

This also paves the way for allowing even more modular accounts,
provided by plugins:
MetaMask/metamask-snaps-beta#63

Fixes #7075.

I've run QA against the signature test site.

After this is merged:

  • Merge develop into the LoginPerSite branch
  • Merge LoginPerSite branch into the latest plugin-beta branch
  • Merge latest plugin-beta branch into the AddIdentityApi branch.
  • Route signTypedData methods through this new method on AddIdentityApi branch.

This simplifies the logic of signing and improves security:
- Private keys are never moved to the base controller.
- Hardware wallets are abstracted in the same way as local keys.

This also paves the way for allowing even more modular accounts,
provided by plugins:
MetaMask/metamask-snaps-beta#63

Fixes #7075.
@metamaskbot
Copy link
Collaborator

Builds ready [25076da]

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me 👍

Copy link
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@danfinlay danfinlay merged commit 5c8048f into develop Oct 23, 2019
@danfinlay danfinlay deleted the routeTypedSignaturesToKeyrings branch October 23, 2019 16:44
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.

Refactor: Move signTypedData methods to keyrings
4 participants