metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

Support the eth_getEncryptionPublicKey and eth_decrypt methods

Open dysbulic opened this issue 5 years ago • 20 comments

Describe the usability problem

Version 8 of the Metamask browser extension added eth_getEncryptionPublicKey to return a Curve25519 encryption key derived from the account's private key. Also, it added eth_decrypt to decrypt information encrypted with the aforementioned public key.

This page demonstrates the functionality in brief.

Expected behavior

These functions are not available in the mobile version. It would be very useful for my application is they were.


filled out after submission

User impact | Usage frequency | Feasibility scores How important is this to the user, what the user wants to accomplish | Daily, weekly, monthly | Small, medium, large

dysbulic avatar Aug 31 '20 21:08 dysbulic

Hi, is there any timeline for this feature yet?

mrenoon avatar Dec 15 '20 04:12 mrenoon

We need this feature for our mobile users.

rstormsf avatar Jan 31 '21 08:01 rstormsf

Depending on the flexibility of your app, IDX has the ability to generate cyphertexts (JWEs) with keys associated with a $ETH account.

dysbulic avatar Jan 31 '21 18:01 dysbulic

@mrenoon, no timeline yet. We'll update here when we plan for it. Curious to hear which dapp you are working on, and how you intend to use the eth_getEncryptionPublicKey & eth_decrypt methods (your use-case / context of the app where this will be useful)

omnat avatar Feb 12 '21 01:02 omnat

@omnat Currently, app.tornado.cash uses both methods for storing encrypted private key on-chain. Encryption happens with metamask's public key for recovery.

rstormsf avatar Feb 13 '21 06:02 rstormsf

Our dApp (EthSign.xyz) also plans to use it to encrypt and decrypt AES keys that encrypt and decrypt various documents stored on IPFS.

boyuanx avatar Jul 06 '21 21:07 boyuanx

This feature would be extremely useful for my mobile dapp project. Is there any progress on making this available for metamask mobile?

mark-smartseal avatar Oct 15 '21 02:10 mark-smartseal

is this in the roadmap? we would love this feature as well

ArcQ avatar Dec 02 '21 15:12 ArcQ

Yes please! Parity with the browser extension with respect to this functionality would be most appreciated!

shawnmitchell avatar Jan 05 '22 17:01 shawnmitchell

Would also love this feature on mobile. I use this to enable users to keep private data onchain and decrypt only with their private keys - makes my app unusable on mobile without it...

joshuaohana avatar Feb 21 '22 06:02 joshuaohana

Same!

amilich avatar Mar 25 '22 19:03 amilich

Our app on web is using eth_decrypt to decipher files. Would be amazing to have it working on mobile as well.

ghost avatar Apr 26 '22 13:04 ghost

Hello ? Can we get some feedback for when this will be on the roadmap ?

jdbertron avatar Jul 04 '22 16:07 jdbertron

hi @omnat 👋🏼, has any progress been made on this? I need this for a Dapp I'm currently working on. Thanks!

avivash avatar Jul 15 '22 16:07 avivash

same here, we are limited to desktop experience 🙁

curious about how we could help to implement eth_getEncryptionPublicKey for mobile

davigp avatar Sep 13 '22 09:09 davigp

Is this feature being worked on?

prtk418 avatar Apr 22 '23 16:04 prtk418

Folks from brave, metamask and various other CASA members are discussing a chain agnostic way to implement this for all wallet clients here:

https://github.com/ChainAgnostic/CAIPs/issues/132

and more actively here https://ethereum-magicians.org/t/eip-5630-encryption-and-decryption/10761/112

avivash avatar Apr 22 '23 20:04 avivash

Hello ? Can we get some feedback for if this feature will ever be implemented ?

mostafaamr137 avatar Jun 25 '23 15:06 mostafaamr137

These two methods are still not supported now, is it possible to support them in the future.

Porianesu avatar Jun 25 '24 07:06 Porianesu

Would really love it if they were. It would be incredibly useful

On Tue, Jun 25, 2024, 3:23 AM Porianesu @.***> wrote:

These two methods are still not supported now, is it possible to support them in the future.

— Reply to this email directly, view it on GitHub https://github.com/MetaMask/metamask-mobile/issues/1807#issuecomment-2188170718, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO2NTS3POX5JOBMT6NAV2ADZJELHLAVCNFSM6AAAAABJ3HFTDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYGE3TANZRHA . You are receiving this because you commented.Message ID: @.***>

mark-smartseal avatar Jun 25 '24 14:06 mark-smartseal