The New Advanced Society. Группа авторов. Читать онлайн. Newlib. NEWLIB.NET

Автор: Группа авторов
Издательство: John Wiley & Sons Limited
Серия:
Жанр произведения: Программы
Год издания: 0
isbn: 9781119884378
Скачать книгу
participant who can initiate this contract. The task state is paired with this contract.

       2.3.3.2 Request for Cash (RT) Contract

      According to this contract, the main contractor can request the client for the amount required for the completion of the created task. Therefore, the main contractor is the only participant who can initiate this contract. The cash state is paired with this contract.

       2.3.3.3 Transfer of Cash (TT) Contract

      According to this contract, the client can send the amount requested, in the form of cash, to the main contractor. Therefore, the client is the only participant who can initiate this contract. The cash state is paired with this contract.

       2.3.3.4 Updation of the Task (UOT) Contract

      According to this contract, the subcontractor can update the status of the task that was assigned to him by the main contractor. Therefore, the subcontractor is the only participant who can initiate this contract. The task state is paired with this contract.

Schematic illustration of the UOT contract.

      2.3.4 Flows

      A flow is a series of steps that tells a node how to attain a specific ledger update thus, automating the process of unison with ledger updates. Communication between nodes occurs only in the accordance of these flows and this happens on a peer-to-peer basis. When a flow waits for messages from other nodes, the flow is suspended, serialized, and check-pointed. If a node fails or restarts, the check-pointed flow is deserialized and started where it left-off. In this case, the flow is suspended and check-pointed until the participant gets a response from the required participants [58]. After the above-mentioned contracts are executed successfully, each contract will be associated with their respective flow.

       2.3.4.1 Flow Associated With CAT Contract

Schematic illustration of the flow of the CAT contract. Schematic illustration of the flow of the RT contract. Schematic illustration of the flow of the UOT contract.

       2.3.4.2 Flow Associated With RT Contract

       2.3.4.3 Flow Associated With TT Contract

       2.3.4.4 Flow Associated With UOT Contract