Say for example I would like encrypt a message using an ETH address (I don't have the private key for this public key). I store the hash in an NFT data. Now I send this NFT to the address I've used for the encryption. This user will be the only one that can decrypt this message using his private key. Does this exist yet? I've done a lot of research and it's possible but not using metamask for example, as it won't let you use the private key for message decryption.
Thanks
EDIT: Adding more info: There is this methods of encryption and decryption:
https://docs.metamask.io/guide/rpc-api.html#eth-decrypt https://docs.metamask.io/guide/rpc-api.html#eth-getencryptionpublickey https://docs.metamask.io/guide/rpc-api.html#encrypting
The only problem is that in order to use eth_getEncryptionPublicKey I need to have access to the account. Which means I can't get the encryption public key from any eth address
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments