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 decryption API #1

Open
ozyman42 opened this issue May 19, 2022 · 0 comments
Open

Add decryption API #1

ozyman42 opened this issue May 19, 2022 · 0 comments
Assignees

Comments

@ozyman42
Copy link

ozyman42 commented May 19, 2022

Metamask allows for content decryption via the private key associated with the user's wallet.
https://docs.metamask.io/guide/rpc-api.html#eth-decrypt
It would be great for Solana wallets to support this as well.

The workflow for an application might look like:

  1. Encrypt data using user's wallet's public key
  2. Store encrypted data somewhere, perhaps on-chain, perhaps in local storage, perhaps in some centralized db
  3. In dapp front-end, user signs in via their crypto wallet, which decrypts the content.
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

2 participants