ChainSafe / filsnap

MetaMask snap for interacting with Filecoin dapps.
https://filsnap.chainsafe.io
Apache License 2.0
107 stars 41 forks source link

[feature]: Import a private key #155

Open eshon opened 2 years ago

eshon commented 2 years ago

Summary

Add the ability to import a Filecoin private key into the FilSnap (as available in the MetaMask GUI) by using either:

1) a private key string 2) a JSON file upload

Expected behavior / User Story

Screen Shot 2022-04-28 at 12 17 08 PM Screen Shot 2022-04-28 at 12 17 14 PM

Completion

When I want to import a private key I am given the option of importing a private key string or uploading a JSON file containing the private key.

When I import the key using either method, the FilSnap loads my Filecoin account into the FilSnap UI as another account I can use.

(Optional) I can switch between recently imported and created accounts as in the MetaMask UI.

eshon commented 2 years ago

Sounds like this is currently blocked by the MetaMask SNAP API and needs discussion with the MM team