2 ms·
> solve the commit-reveal problem (where the last party to reveal their commitment can abandon, so they have an advantage). Don't you commit to the contract be
by Bromskloss 9y ago
> solve the commit-reveal problem (where the last party to reveal their commitment can abandon, so they have an advantage).
Don't you commit to the contract before any revelations are made?
- Drakim 9y agoNormally you have one user of the contract who invokes it, and somebody else mines/computes the results. I think the trick here is that the user of the contract is also mining/computing the smartcontract at the same time, and thus knows the contract's results before it's published to the network. If they are unhappy with how the contract unfolds (because of the random component), they just pretend as if it all never happened, neither the contract usage or the contract mining/computing never took place.