Closed ldct closed 6 years ago
Thank you for the issue! Updated the registry in latest commit.
To address this, Alice and Bob now sign a message of the following form:
[address Alice]
[address Bob]
[CTFcode]
deployCTF
no longer takes arbitrary bytecode to be deployed along side the sigs, the bytecode is now pulled from the state and the signatures are checked to match those that are in the message so that only CTF bytecode that has been signed off by both parties should be deployed.
Let me know if you find another whole in this logic.
deployCTF
is called as part of a dispute with arguments _ctfbytes, _state, v, r, s, where the bytecode of C is included in _ctfbytes as well as _state. This creates a contract with bytecode C at counterfactual address A