MetaMask / MetaMask/metamask-mobile

Support the eth_getEncryptionPublicKey and eth_decrypt methods

Open
#1,807 20 comments 17 reactions 0 assignees View on GitHub
community
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

**Describe the usability problem**

Version 8 of the Metamask browser extension [added](https://github.com/MetaMask/metamask-extension/issues/1190) `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](https://codepen.io/dysbulic/pen/zYqdPoz) 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_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the mobile dapp-browser RPC/provider entry point and reviewing the linked MetaMask extension issue for the behavior of eth_getEncryptionPublicKey and eth_decrypt. Verify the expected behavior on both iOS and Android; the feature is done when both methods are available in the mobile version.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain, react-native, typescript
Domain
api, blockchain, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.