-
Notifications
You must be signed in to change notification settings - Fork 10
Recipe: Counterfactually instantiating a contract
Liam Horne edited this page Jul 21, 2017
·
2 revisions
Warning: still under construction
How to sign off-chain consents that will allow any participant to create the desired contract if they need to.
The address for the Unanimous Consent contract of the open state channel, a factory for the type of contract you want to counterfactually instantiate, and a unique counterfactual id to refer to the contract by.
- Compose the action which the Unanimous Consent contract will use to instantiate the object. needs more detail
- Hash this action.
- Sign this hash or a list of hashes containing this hash.
- Send it to the other channel participants for countersigning.
- Once every participant has a complete set of signatures, the contract is counterfactually instantiated. To call the contract counterfactually, use the unique id as the counterfactual address to look it up in the bulletin board where it is counterfactually registered.