I want to send an encrypted message to a specific ETH address via the blockchain.
Hello, my secret.
Can I encrypt this message in the browser with the public key of the recipient's address? I understand that an ETH address is not a public key, but is it possible to somehow get it to a person who wants to send a message.
encode_public_key_ETH_address('Hello, my secret.')
//=> 6ee825aafad19a0d759e1e0b
Send to blockchain.
So that only the recipient can decrypt it using the private key from the ETH address.
decode_private_key_ETH_address('6ee825aafad19a0d759e1e0b')
//=> Hello, my secret.