[Snyk] Upgrade @metamask/eth-sig-util from 4.0.0 to 4.0.1 #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade @metamask/eth-sig-util from 4.0.0 to 4.0.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @metamask/eth-sig-util
Fixed
Added
salt
to the EIP-712domain
type (#176)Changed
signTypedData
andrecoverTypedSignature
functions (#156)signTypedDataLegacy
,signTypedData
, andsignTypedData_v4
have been replaced with a singlesignTypedData
function with aversion
parameter. Theversion
parameter determines which type of signature you get.signTypedDataLegacy
, switch tosignTypedData
with the versionV1
.signTypedData
, switch tosignTypedData
with the versionV3
.signTypedData_v4
, switch tosignTypedData
with the versionV4
.recoverTypedSignatureLegacy
,recoverTypedSignature
, andrecoverTypedSignature_v4
have been replaced with a singlerecoverTypedSignature
function.recoverTypedSignatureLegacy
, switch torecoverTypedMessage
with the versionV1
.recoverTypedMessage
, switch torecoverTypedMessage
with the versionV3
.recoverTypedSignature_v4
, switch torecoverTypedMessage
with the versionV4
.TypedDataUtils.sign
toTypedDataUtils.eip712Hash
(#104)@ metamask
npm organization (#162)require
andimport
statements to import@ metamask/eth-sig-util
rather thaneth-sig-util
.TypedData
has been updated to be more restrictive (it only allows valid typed data now), and it was renamed toTypedDataV1
MsgParams
parameters with "options" parameters (#204)personalSign
recoverPersonalSignature
extractPublicKey
encrypt
encryptSafely
decrypt
decryptSafely
signTypedData
recoverTypedSignature
MsgParams
type that was used for most of these functions previously. Read each function signature carefully to ensure you are correctly passing in parameters.personalSign
example:personalSign(privateKey, { data })
personalSign({ privateKey, data })
Version
type toSignTypedDataVersion
(#218)EIP712TypedData
type toTypedDataV1Field
(#218)signTypedData
version validation (#201)ethereumjs-util
to v6 (#138, #195)TypedDataUtils
functions to be called unbound (#152)tweetnacl-util
version (#155)signTypedData
(#189)Commit messages
Package name: @metamask/eth-sig-util
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs