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.

1 Answer 1


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.

  • Keep in mind, however, that the encrypted transaction is still public and can be brute forced or cracked by a determined adversary. Oct 25, 2018 at 19:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.