Snap Architecture

What does Identify Snap look like under the hood?

One of the primary benefits of developing and using a snap in an application is that it leverages the security of MetaMask itself. Snaps, like Identify Snap, operate in an isolated environment inaccessible to other snaps, ensuring that data can only be accessed through the APIs exposed by the snap.

Identify Snap's security is of utmost importance, as it stores private keys for both MetaMask and non-MetaMask accounts that have been previously imported. By exposing only the essential APIs for handling DIDs and VCs, the snap ensures that applications cannot access its internal state.

The private keys stored within Identify Snap's state are used to generate Verifiable Credentials, DID documents, and interact with the snap's APIs. This security measure prevents applications from impersonating another user's digital identifier, as all actions are tied to the connected account's private key.

In summary, Identify Snap takes advantage of MetaMask's inherent security to protect user data within an isolated environment, ensuring the integrity of actions related to Decentralized Identifiers and Verifiable Credentials.

Last updated