Skip to content

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Apr 29, 2025

This adds a new preloadSnap function to the SnapController, which is automatically called for preinstalled Snaps when the client is unlocked (i.e., when KeyringController:unlock is emitted). It decrypts and caches the state for the Snaps, so state doesn't need to be decrypted when first interacting with the Snap.

This change requires KeyringController:unlock to be added to the list of allowed events for the SnapController.

@Mrtenz Mrtenz changed the title Preload encrypted state of preinstalled Snaps perf: Preload encrypted state of preinstalled Snaps Apr 29, 2025
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.

1 participant