web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

Add function for eth_getEncryptionPublicKey

Open markg85 opened this issue 3 years ago • 1 comments

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

markg85 avatar May 22 '22 18:05 markg85

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.

github-actions[bot] avatar Aug 03 '22 00:08 github-actions[bot]

Completed?

markg85 avatar Aug 18 '22 00:08 markg85