state channels. Client places deposit into smart contract to some temporary account called channel. This prevents double spending. Then Client will send constantly increasing cheque matching total usage directly to Agent. Every cheque includes allowance to withdraw signed using Client's signature. Anytime Agent can send transaction to smart contract presenting signed cheque. Smart contract will verify signature and transfer cheque balance to Agent's account, while remainder will return to Client's balance. After that channel will be deleted.
_client_address- ethereum address of client
_agent_address- ethereum address of agent
_open_block_number- ethereum block number in which transaction that created channel was mined
_offering_hash- hash of offering message
_deposit- tokens that placed as deposit to state channel
UI API. Smart contract method called:
dispute periodis passed, Client can call second smart contract method:
Dispute period- period counted in Ethereum blocks that need to pass between Client calls
settlemethods of smart contract. If period is not passed,
settlemethod will fail.