Zum Hauptinhalt springen

How do Snap permissions work?

Does this article need to be translated?

MetaMask Snaps opens up a world of possibilities, and with great power comes the need for user consent. Upon installation, Snaps can request specific permissions to access various functionalities surrounding your MetaMask wallet; compare it to installing an application on your mobile phone.

This article explores how Snap permissions work, the various permissions a Snap might request upon installation, and how you can view the permissions used by a Snap that is already installed.

Access and control

When installing a Snap, you'll encounter requests for specific permissions. Currently, a Snap might request any of the following permissions. In the future, additional permissions might be added.

  • Erlauben Sie anderen Snaps, direkt mit diesem Snap zu kommunizieren
    Gewähren Sie diesem Snap, mit anderen Snaps zu kommunizieren. This can be used to transfer data and enhance the functionality of other Snaps.
  • Erlauben Sie dApps, direkt mit diesem Snap zu kommunizieren
    Gewähren Sie diesem Snap die Kommunikation mit anderen dApps. This can be used to share data and enhance the functionality of dapps.
  • Benutzerdefinierte Dialoge anzeigen
    Gewähren Sie diesem Snap die Anzeige von benutzerdefinierten Dialogen in MetaMask. These can be used for alerts, confirmations, and input prompts.
  • Benachrichtigungen anzeigen
    Gewähren Sie diesem Snap die Anzeige von Benachrichtigungen in MetaMask.
  • Beliebige Schlüssel, die für diesen Snap einzigartig sind, ableiten
    Gewähren Sie diesem Snap, beliebige Schlüssel zu erstellen. These keys are unique to this Snap and aren't related to your MetaMask accounts. The keys can be used to authenticate with dapps and cloud-based services.
  • Ihren öffentlichen Schlüssel für (Protokoll) anzeigen
    Gewähren Sie diesem Snap Einblick in Ihre öffentlichen Schlüssel und Adressen für ein bestimmtes Protokoll. The Snap won't be able to control your accounts or assets.
  • Speichern und verwalten von Daten auf Ihrem Gerät
    Gewähren Sie diesem Snap das Speichern, Aktualisieren und Abrufen von Daten mit Verschlüsselung. This data is stored securely on your device.
  • Zugriff auf Ethereum-Anbieter
    Gewähren Sie diesem Snap die Kommunikation mit MetaMask, damit er Blockchain-Daten einsehen und Transaktionen empfehlen kann.
  • Zugang zum Internet
    Gewähren Sie diesem Snap Zugriff auf das Internet, damit er mit Servern von Dritten kommunizieren kann. This can be used for both sending and receiving data.
  • Einblicke in Transaktionen anzeigen
    Gewähren Sie diesem Snap die Entschlüsselung von Transaktionen und die Anzeige von Einblicken in MetaMask. This can be used for anti-phishing and security.
  • Herkunft von Websites sehen, die Transaktionen empfehlen
    Gewähren Sie diesem Snap, die Herkunft von Websites zu erkennen, wenn diese Transaktionen empfehlen. This can be used for anti-phishing and security.
  • Planung und Ausführung regelmäßiger Aktionen
    Gewähren Sie diesem Snap die Planung und Ausführung wiederkehrender Aufgaben oder Benachrichtigungen.

Find a full list of permissions a Snap could request on the MetaMask Snaps development docs.

Viewing permissions used by installed Snaps

Sie können die einem Snap erteilten Genehmigungen ganz einfach einsehen, indem Sie die Konfigurationsseite des Snap in MetaMask aufrufen.

  1. Look for the three vertical dots in the upper-right corner of your MetaMask window. Click on these dots to reveal a drop-down menu.

  2. Klicken Sie auf „Snaps“, um eine Liste aller derzeit in Ihrer MetaMask-Instanz installierten Snaps aufzurufen.

MetaMask-Snaps lokalisieren

  1. Scroll through the list of installed Snaps to find the specific one you wish to find more info about.

MetaMask_Snap_installed_list.png

  1. Click on the cogwheel icon to open the settings for that specific Snap.

MetaMask-Snap-Genehmigungsliste

Ta-da! 🙌 you'll now be able to view the permissions that have already been granted to the Snap.