Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Is there a way to make some transactions private inside a smart contract?
It's needed for a game theoretic model. Like imagine poker on blockchain: you'd like not to reveal cards until some point in game.
No, transactions are always public.
If you want to hide content this is usually done through encryption. The user would at the end decrypt their secrets.
For a poker game the dealer would encrypt the distributed cards and push it to the chain.
Required, but never shown