1

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

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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