Skip to content

Feature: sign typed message v4#161

Merged
estebanmino merged 4 commits intodevelopfrom
feature/sign-typed-v4
Oct 22, 2019
Merged

Feature: sign typed message v4#161
estebanmino merged 4 commits intodevelopfrom
feature/sign-typed-v4

Conversation

@estebanmino
Copy link
Contributor

@estebanmino estebanmino commented Oct 16, 2019

This PR adds support for sign typed messages v4 in KeyringController's method signTypedMessage using the new method from eth-sig-util. Added and updated tests, instead of checking signatures against non-empty, tests are now checking against a signature recovered account.

Related MetaMask/metamask-mobile#1055

Copy link
Contributor

@brunobar79 brunobar79 left a comment

Choose a reason for hiding this comment

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

🔥

@codecov-io
Copy link

Codecov Report

Merging #161 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           develop   #161   +/-   ##
======================================
  Coverage      100%   100%           
======================================
  Files           23     23           
  Lines         1497   1498    +1     
  Branches       209    209           
======================================
+ Hits          1497   1498    +1
Impacted Files Coverage Δ
src/keyring/KeyringController.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update edb19a1...9159330. Read the comment docs.

@estebanmino estebanmino merged commit 5f26462 into develop Oct 22, 2019
@whymarrh whymarrh deleted the feature/sign-typed-v4 branch November 5, 2019 17:43
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* bump eth-sig-util

* 					signTypedData_v4

* tests
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* bump eth-sig-util

* 					signTypedData_v4

* tests
Mrtenz pushed a commit that referenced this pull request Oct 16, 2025
Bumps [@metamask/eth-sig-util](https://github.com/MetaMask/eth-sig-util) from 5.0.0 to 5.0.2.
- [Release notes](https://github.com/MetaMask/eth-sig-util/releases)
- [Changelog](https://github.com/MetaMask/eth-sig-util/blob/main/CHANGELOG.md)
- [Commits](MetaMask/eth-sig-util@v5.0.0...v5.0.2)

---
updated-dependencies:
- dependency-name: "@metamask/eth-sig-util"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

3 participants