The New Advanced Society. Группа авторов

The New Advanced Society - Группа авторов


Скачать книгу
the system branched and complex. For the sake of simplicity, this solution assumes three main actors: the client, the main contractor and the subcontractor and the procedures involving the creation of tasks by the main contractor and the transfer of money from the client to the main contractor and the subcontractor. The main motive of this solution is to keep the client in loop with all the transactions that occur during the completion of the construction, such that the client is in light regarding the expenditure of every penny spent. To achieve this, the solution utilizes a platform provided by R3, namely Corda [59], where all information is only shared with the remaining nodes on a need-to-know basis.

      2.4.1 System Overview

Schematic illustration of the system overview.

      2.4.2 Working Flowchart

Schematic illustration of the working flowchart of the solution.

      The Main Contractor: This entity can create new tasks and assign them to the subcontractor, along with a deadline, and then request the client for the money that is required for the completion of the assigned task. This participant can be assumed as the bridge linked to the client and the subcontractor.

      The Subcontractor: This entity should update the status of the assigned task so that it can be inspected by the concerned people. This participant should do so before the given deadline so that no strict action can be taken for the delay.

      This solution model uses a single notary due to limited participants and all the participants must have an account on the online platform that is provided.

      2.4.3 Experimental Demonstration

      It can be seen from Figure 2.12 that the proposed solution model involves a multi-step process. Hence, for the sake of simplicity and understanding of the working, we will be demonstrating the first step which involves the creation of a task by the main contractor. The execution of this step involves creating four files:

       TaskState.java—the file containing the code with the specifics of the state; the initialization of the parameters

       CATContract.java—the file containing the code with the rules for the inputs and outputs, required conditions, and checking for the signatures of the required signers.

       CATInitiatorFlow.java—the file containing the code that starts the flow, makes sure that only the main contractor can initiate the transaction, gathers the required signatures, and gets the notary node to verify the provided signatures to approve or disapprove the transaction.

       CATResponderFlow.java—the file containing the code that takes care of the flow session from the counterparties i.e., the client and the subcontractor.

      After finishing the code in the respective files, the next step is to deploy the four nodes for the client, the main contractor, the subcontractor, and the notary.

A snapshot of the executing gradlew.bat deployNodes. A snapshot of the executing build\nodes\runnodes.bat. A snapshot of the client node. A snapshot of the MainContractor node. A snapshot of the Notary node.
Скачать книгу