Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add data encryption/decryption API to Wallet class #144

Open
ozyman42 opened this issue Jun 28, 2023 · 0 comments
Open

Add data encryption/decryption API to Wallet class #144

ozyman42 opened this issue Jun 28, 2023 · 0 comments

Comments

@ozyman42
Copy link

ozyman42 commented Jun 28, 2023

Context

Many potential applications might prefer to encrypt end user data via a public key the user controls rather than encrypting via a user's password (i.e. lastpass), as passwords are a poor UX compared to a web 3 wallet. Metamask currently is the only web 3 wallet I'm aware of which offers the ability to decrypt via private key. Ideally Solana wallets should support this, and ideally all the wallets would use the same algorithm for obtaining a public encryption key and the same asymmetric encryption algo too. In the linked EIP you see a proposal for wallets to offer an RPC for encryption via secp256k1 + ECIES.

Proposal: Add data encryption and decryption methods to the SDK's Wallet class

Relevant Links

Relevant issues opened in web3.js and in Backpack:

Similar discussion in Etheruem: https://ethereum-magicians.org/t/eip-5630-encryption-and-decryption/10761/128

Metamask SDK:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant