I know about the general open / trustless protocol of storing transactiontransactions. How would I approach a scenario here where I want to store some data in a contract on deployment, to later be retrieved by someone else.
E.g. I have a contract which stores secret number and other users cann interact with the Dapp and id on these numbers, only the highest bidder shall receive the true secret number inunknown at the end.time of deployment?
Clarification: TheThe main problem here is that the receiver of the secret data is not known in advance / when providing the secret data. Therefore simply encrypting the data with buyers public key is not a valid approach
E.g. I have a contract which stores secret number and other users can interact with the Dapp and bid on these numbers, only the highest bidder shall receive the true secret number in the end.