To get started, make sure you have MetaMask first and then install the Identity snap from the Metamask Snaps store or npm registry. Note that as of now, v1.5.0 is the most stable version so we recommend you use this in your application
Connect with Metamask and accept the connection in MetaMask(Note that you cannot install snaps directly. You would need to enable this in your app. To learn more about how you can do this in your own app, look at an example site code that has the Identify Snap installation functionality or go through the live demos within the Snap RPC APIs section where you can check out the working html/js code to do this.
Approve and install the Identify snap
Check out this demo video that showcases how a website can integrate with Identify Snap and expose various functionalities such as creating DID, resolving DID, creating Verifiable Credentials and creating Verifiable Presentations and much more.
MetaMask Snaps allows users to add features and functionality to their MetaMask wallet. Individual snaps are features created by third-party developers that MetaMask users can install directly into their wallet. Learn more about Metamask snaps.
A Snap is an application built by a third-party developer that adds features and functionality to MetaMask. Snaps can connect to blockchain protocols beyond Ethereum, show insights about transactions, display notifications, add new privacy and identity features, and much more.
Snaps run in a sandboxed environment and use a permissions model to protect your data and respect your consent. Snaps do not have access to your MetaMask account data. When installing a Snap, make sure you understand what permissions you are granting to stay secure.
DID is not directly compatible with MetaMask. The Identify snap allows you to manage your DID by creating a DID based on your ECDSA private key.
No, the Identify Snap does not modify any UI within MetaMask. To interact with the snap and perform actions you need to go through a dapp. We have built a dedicated dapp that you can access here to view your Verifiable Credentials here.
Snaps are currently only available on MetaMask. MetaMask is a browser-based extension. This means the Identify snap, or any other snap, is currently not available on MetaMask Mobile however, there are plans from the Metamask team to release the Snap feature on Metamask mobile in the near future.
Reinstalling the snap will automatically recover your account provided you use the same private key to configure the account again via your DApp. Verifiable Credentials will need to be added again. Deleting the snap does not delete your DID or transaction history.