web3.js
web3.js copied to clipboard
Add function for eth_getEncryptionPublicKey
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
Doesn't exist in web3.js
Expected Behavior
Should be added and functionally work like https://docs.metamask.io/guide/rpc-api.html#eth-getencryptionpublickey
Steps to Reproduce
none
Web3.js Version
1.7.3
Environment
n/a
Anything Else?
This RPC call seems to exist for multiple years. I couldn't find where it was added but could find references to it as far back as 2018[1]. Seems about time to me to add it in web3 too.
Another reason for requesting the addition is encryption/decryption of messages. Currently that is possible with web3 but you have to use helper libraries and a true boat load of github issues to even figure out how to use it. Adding this ins web3 would make it one step easier.
[1] https://ethereum-magicians.org/t/eip-1024-cross-client-encrypt-decrypt/505
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.
Completed?