# Securing Construction Workers' Data Security and Privacy with Blockchain Technology
## 3 Methodology
### Experimental Design of the Proposed Blockchain
#### 3.1.3 Deployment of Proposed Blockchain
Getter and setter methods were provided for each field, thus enabling access and modification of user information. \begin{table}
\begin{tabular}{c c} \hline \hline
**Container ID** & **Names** \\ \hline
76 ft609623b6e & dev-peer0.org2.example.com-construction-chaincode \\
5 fcc2 dcfae2c & dev-peer0.org1.example.com-construction-chaincode \\
2b0446d09f92 & dev-peer0.org2.example.com-basic \\
89 cab858e55 & dev-peer0.org1.example.com-basic \\ e75f020n84f & cli \\
3 fc7a199 eaa1 & Peer0.org2.example.com \\
859c95e237d8 & Peer0.org.example.com \\
442b5b213879 & couchdb0 \\ d1d909 efa1f & couchdb1 \\
66 abe5e9301c & orderer.example.com \\ d453 fdb69751 & ca\_orderrer \\ cb81 ea1a75b & ca\_org2 \\
817296 bd5f4a & ca\_org1 \\ \hline \hline \end{tabular}
\end{table} 
Table 1: Hyperledger Fabric components. ```
// Define a User class class User { // Define private member variables String user_id String user_name String user_address String user_email String account_type // Define getters and setters for the member variables method getUser_id0 : String method getUser_id( user_id : String) : void method getUser_name() : String
```  
**Algorithm 2** Safety data of construction workers  
Algorithm 2 described the safety data of the workers. The algorithm represented a Java class called \"SpreadingMortar\", which served as a data structure to store information related to risk assessments of the tilers during mortar spreading. The class contained various properties, such as \"id\", \"numberOframes\", \"neckAngle\", etc., which represented different aspects of the worker's posture and movements when spreading the mortar, and properties like \"rebaScore\" and \"levelOfMSDRisk\" to indicate the calculated risk score and the level of work-related musculoskeletal disorder risk associated with the worker's activities. The class also provided better and setter methods for accessing and modifying these properties. ``` // Define a SpreadingMortar class class SpreadingMortar { // Declare private member variables String id String numberOfFrames String neckAngle String rightElbow String leftElbow String rightwrist String leftwrist String rightSoulder String leftSoulder String rightHip String rightHine String rightKnee String leftKnee String rebaScore String levelOfMSDRisk // Define a parameterized constructor method SpreadingMotor(id : String, numberOfFrames : String, neckAngle : String, rightElbow : String, leftElbow : String, rightwrist : String, leftRounder : String, leftSoulder : String, leftSoulder : String,The integration, as shown in Figure 5, confirms that the Hyperledger components were successfully running. Furthermore, the results shown in Figure 6 display the fabric components, including the container IDs, status, ports, names, and commands, which suggest that the Hyperledger Fabric blockchain developed was running successfully. In Figure 7, the APIs tested on POSTMAN revealed the transaction status to be true, as the transactions for construction workers' personal information and risk assessment data were carried out and added to the blockchain successfully. Figure 5: AWS-based blockchain integration on Ubuntu computer. Figure 6: Fabric components of the proposed blockchain. 1.1 A Conceptual Blockchain-Based Model for Enhancing the Privacy and Safety of Construction Workers' Personal Information

The results from the experimental design led to the development of a robust information management blockchain model aimed at enhancing the privacy and safety of construction workers (Figure 8).