Skip to content

Commit

Permalink
feat: bump @metamask/message-signing-snap to ^0.6.0 (#28877)
Browse files Browse the repository at this point in the history
## **Description**

Bumps message signing snap to `^0.6.0`

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/28877?quickstart=1)

## **Related issues**

Fixes:

## **Manual testing steps**

Ensure application still works as intended
1. Complete onboarding
2. Try to enable notifications (as this uses the snap)

Try using the preinstalled snap on sites. [See snap docs for
testing](https://github.com/MetaMask/message-signing-snap/blob/main/docs/testing.md)
- can be tested in the browser.
1. Get eip6963 provider
2. Call connect
3. Call get public key
4. Call sign message

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
  • Loading branch information
Prithpal-Sooriya authored Dec 9, 2024
1 parent 44696fd commit 0eab55d
Show file tree
Hide file tree
Showing 6 changed files with 116 additions and 131 deletions.
54 changes: 27 additions & 27 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,23 @@
"crypto": true
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true,
"@metamask/message-signing-snap>@noble/curves": true
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": {
"globals": {
"TextEncoder": true
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves>@noble/hashes": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/curves>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
Expand All @@ -200,8 +214,8 @@
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": true,
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true
}
},
Expand Down Expand Up @@ -1637,27 +1651,6 @@
"browserify>url": true
}
},
"@metamask/message-signing-snap>@noble/ciphers": {
"globals": {
"TextDecoder": true,
"TextEncoder": true,
"crypto": true
}
},
"@metamask/message-signing-snap>@noble/curves": {
"globals": {
"TextEncoder": true
},
"packages": {
"@metamask/message-signing-snap>@noble/curves>@noble/hashes": true
}
},
"@metamask/message-signing-snap>@noble/curves>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@metamask/name-controller": {
"globals": {
"fetch": true
Expand Down Expand Up @@ -2135,13 +2128,20 @@
"@metamask/base-controller": true,
"@metamask/keyring-api": true,
"@metamask/keyring-controller": true,
"@metamask/message-signing-snap>@noble/ciphers": true,
"@metamask/profile-sync-controller>@noble/ciphers": true,
"@metamask/profile-sync-controller>siwe": true,
"@noble/hashes": true,
"browserify>buffer": true,
"loglevel": true
}
},
"@metamask/profile-sync-controller>@noble/ciphers": {
"globals": {
"TextDecoder": true,
"TextEncoder": true,
"crypto": true
}
},
"@metamask/profile-sync-controller>siwe": {
"globals": {
"console.error": true,
Expand Down Expand Up @@ -2512,7 +2512,7 @@
"crypto.subtle": true
},
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@metamask/scure-bip39": true,
"@metamask/utils": true,
"@metamask/utils>@scure/base": true,
Expand Down Expand Up @@ -2556,7 +2556,7 @@
},
"@metamask/snaps-utils>@metamask/snaps-registry": {
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@metamask/utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true
Expand Down
54 changes: 27 additions & 27 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,23 @@
"crypto": true
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true,
"@metamask/message-signing-snap>@noble/curves": true
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": {
"globals": {
"TextEncoder": true
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves>@noble/hashes": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/curves>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
Expand All @@ -200,8 +214,8 @@
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": true,
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true
}
},
Expand Down Expand Up @@ -1637,27 +1651,6 @@
"browserify>url": true
}
},
"@metamask/message-signing-snap>@noble/ciphers": {
"globals": {
"TextDecoder": true,
"TextEncoder": true,
"crypto": true
}
},
"@metamask/message-signing-snap>@noble/curves": {
"globals": {
"TextEncoder": true
},
"packages": {
"@metamask/message-signing-snap>@noble/curves>@noble/hashes": true
}
},
"@metamask/message-signing-snap>@noble/curves>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@metamask/name-controller": {
"globals": {
"fetch": true
Expand Down Expand Up @@ -2135,13 +2128,20 @@
"@metamask/base-controller": true,
"@metamask/keyring-api": true,
"@metamask/keyring-controller": true,
"@metamask/message-signing-snap>@noble/ciphers": true,
"@metamask/profile-sync-controller>@noble/ciphers": true,
"@metamask/profile-sync-controller>siwe": true,
"@noble/hashes": true,
"browserify>buffer": true,
"loglevel": true
}
},
"@metamask/profile-sync-controller>@noble/ciphers": {
"globals": {
"TextDecoder": true,
"TextEncoder": true,
"crypto": true
}
},
"@metamask/profile-sync-controller>siwe": {
"globals": {
"console.error": true,
Expand Down Expand Up @@ -2512,7 +2512,7 @@
"crypto.subtle": true
},
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@metamask/scure-bip39": true,
"@metamask/utils": true,
"@metamask/utils>@scure/base": true,
Expand Down Expand Up @@ -2556,7 +2556,7 @@
},
"@metamask/snaps-utils>@metamask/snaps-registry": {
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@metamask/utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true
Expand Down
54 changes: 27 additions & 27 deletions lavamoat/browserify/main/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,23 @@
"crypto": true
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true,
"@metamask/message-signing-snap>@noble/curves": true
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": {
"globals": {
"TextEncoder": true
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves>@noble/hashes": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/curves>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@ethereumjs/tx>ethereum-cryptography>@noble/hashes": {
Expand All @@ -200,8 +214,8 @@
},
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@scure/bip32>@noble/hashes": true,
"@metamask/message-signing-snap>@noble/curves": true,
"@metamask/utils>@scure/base": true
}
},
Expand Down Expand Up @@ -1637,27 +1651,6 @@
"browserify>url": true
}
},
"@metamask/message-signing-snap>@noble/ciphers": {
"globals": {
"TextDecoder": true,
"TextEncoder": true,
"crypto": true
}
},
"@metamask/message-signing-snap>@noble/curves": {
"globals": {
"TextEncoder": true
},
"packages": {
"@metamask/message-signing-snap>@noble/curves>@noble/hashes": true
}
},
"@metamask/message-signing-snap>@noble/curves>@noble/hashes": {
"globals": {
"TextEncoder": true,
"crypto": true
}
},
"@metamask/name-controller": {
"globals": {
"fetch": true
Expand Down Expand Up @@ -2135,13 +2128,20 @@
"@metamask/base-controller": true,
"@metamask/keyring-api": true,
"@metamask/keyring-controller": true,
"@metamask/message-signing-snap>@noble/ciphers": true,
"@metamask/profile-sync-controller>@noble/ciphers": true,
"@metamask/profile-sync-controller>siwe": true,
"@noble/hashes": true,
"browserify>buffer": true,
"loglevel": true
}
},
"@metamask/profile-sync-controller>@noble/ciphers": {
"globals": {
"TextDecoder": true,
"TextEncoder": true,
"crypto": true
}
},
"@metamask/profile-sync-controller>siwe": {
"globals": {
"console.error": true,
Expand Down Expand Up @@ -2512,7 +2512,7 @@
"crypto.subtle": true
},
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@metamask/scure-bip39": true,
"@metamask/utils": true,
"@metamask/utils>@scure/base": true,
Expand Down Expand Up @@ -2556,7 +2556,7 @@
},
"@metamask/snaps-utils>@metamask/snaps-registry": {
"packages": {
"@metamask/message-signing-snap>@noble/curves": true,
"@ethereumjs/tx>ethereum-cryptography>@noble/curves": true,
"@metamask/utils": true,
"@metamask/utils>@metamask/superstruct": true,
"@noble/hashes": true
Expand Down
Loading

0 comments on commit 0eab55d

Please sign in to comment.