TrueBitFoundation / truebit-os

[DEPRECATED] Interactive client
Apache License 2.0
82 stars 26 forks source link

Implement commit/reveal for verifier and solver #36

Closed hswick closed 6 years ago

hswick commented 6 years ago

On #33

The IncentiveLayer contract uses a commit reveal approach for parts of its interactions.

Solver commits random bits, solutions, and later reveals them after certain states. Verifier reveals challenge intent, and reveals after a certain state.

This code would be added as event handler logic to wasm-client/solver and wasm-client/verifier.