This question already has an answer here:
I have a secret message that I want to share it with a specific
Ethereum Address using a smart contract and I want no one else to see it except that specific Ethereum address user. Is it possible?
- If I share it via
eventeveryone would see it.
- If I set a variable and code a getter for that, also everyone could access it.
[Q] I know that everything is public on the blockchain, but somehow is it possible to keep a string private for the specific user and only that specific user can view it?