Commit f55d171
authored
perf: Use faster registry verification (#3770)
Bump `snaps-registry` to the latest version which changes `verify` to be
async in order to use the global crypto digest API, which is much
faster.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Switches registry signature verification to async and bumps
@metamask/snaps-registry to v4 for faster verification.
>
> - **Snaps Controllers**:
> - Make `#verifySignature` async; await `verify` and its call in
`#update`.
> - **Dependencies**:
> - Bump `@metamask/snaps-registry` to `^4.0.0` in
`packages/snaps-controllers` and `packages/snaps-utils`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
3a83139. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent e21d3a3 commit f55d171
File tree
4 files changed
+11
-12
lines changed- packages
- snaps-controllers
- src/snaps/registry
- snaps-utils
4 files changed
+11
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
405 | 404 | | |
406 | | - | |
| 405 | + | |
407 | 406 | | |
408 | 407 | | |
409 | | - | |
| 408 | + | |
410 | 409 | | |
411 | 410 | | |
412 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4265 | 4265 | | |
4266 | 4266 | | |
4267 | 4267 | | |
4268 | | - | |
| 4268 | + | |
4269 | 4269 | | |
4270 | 4270 | | |
4271 | 4271 | | |
| |||
4416 | 4416 | | |
4417 | 4417 | | |
4418 | 4418 | | |
4419 | | - | |
4420 | | - | |
4421 | | - | |
| 4419 | + | |
| 4420 | + | |
| 4421 | + | |
4422 | 4422 | | |
4423 | 4423 | | |
4424 | 4424 | | |
4425 | 4425 | | |
4426 | 4426 | | |
4427 | | - | |
| 4427 | + | |
4428 | 4428 | | |
4429 | 4429 | | |
4430 | 4430 | | |
| |||
4605 | 4605 | | |
4606 | 4606 | | |
4607 | 4607 | | |
4608 | | - | |
| 4608 | + | |
4609 | 4609 | | |
4610 | 4610 | | |
4611 | 4611 | | |
| |||
0 commit comments