State Channel Sample Project
• Use any existing demo project from Celer or Connext or create your own • Run locally, start both state channel participants
- What data are submitted on chain?
- What data are stored locally? Explain the struct of this data.
- How does dispute work? Explain the dispute resolvement flow in sense of cryptography.
Ref: https://github.com/connext/chaindata/blob/main/AnyswapV5ERC20.sol
bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
Answer: this data contains bytes32 type which has been hashed by keccak256 algorithm and it will return somthing like this 0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9.
Explaination::
address(0) is the address that has no owner therefore we do not want to transfer tokens to this address.