简体   繁体   中英

using Ethereum private key to encrypt string

I need to encrypt a string using the private key of my account on a Ethereum private network. How can I do this with web3j? The Ethereum cient I use is Geth.

You may find your answer here: https://ethereum.stackexchange.com/questions/3092/how-to-encrypt-a-message-with-the-public-key-of-an-ethereum-address

With geth on its own I don't think that it is possible, however with bitcore-lib and bitcore-ecies it is.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM