MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.67k stars 4.78k forks source link

Could I use metamask to secure and use a GPG key? #4916

Closed ghthor closed 3 years ago

ghthor commented 5 years ago

Problem

I want to be able to store GPG encrypted files into IPFS and send someone an IPFS hash as the link. I want them to be able open the link in there browser and have the browser decrypt and display the file.

Why Metamask?

I would like to reuse the engineering that has been going into metamask to store ethereum private keys by extending metamask to store and provide access to GPG private keys as well.

Thoughts/Questions

Does this make sense to incorporate into metamask, the ability to secure and provide access/usage to other type of private keys?

Would it be better to construct a specific addon while reusing the secure storage that metamask has developed?

Thanks for all the good work, metamask is a stellar piece of software with a great UX and I love the Fox!

bdresser commented 5 years ago

@ghthor this is a great usecase, and something we've been discussing for a while. See https://github.com/MetaMask/metamask-extension/issues/1190.

This project is related to a pending EIP, https://github.com/ethereum/EIPs/pull/1098, and we're looking forward to it being finalized.

I'll let @danfinlay chime in on whether GPG keys pose any particular technical challenges that would make this a larger project than #1190.

danfinlay commented 3 years ago

Short term I'd recommend challenging a user with a signature and using the resulting signature as entropy for signatures OR using our new encrypt/decrypt methods.

Longer term, our Snaps system will totally make this possible!

Sorry for taking so long to get to this!