## 3 Proposed Framework  
The description of the proposed framework is provided in three parts, which are provided as below. The systematic architecture of the proposed framework consists of three layers, namely:  
1. IIoMT-enabled industrial layer;
2. Edge and fogblockchain layer;
3. Cloud-blockchain layer.  
As illustrated in Figure 1:  
1. **IIoMT-enabled industrial layer:** This layer consists of IoT-based industrial track-ing systems and implantable medical devices (e.g., glucose monitor, temperature sensors, heart rate devices);
2. **Edge-Blockchain layer:** This layer consists of powerful nodes, i.e., full nodes (FN), that include edge-computing servers, industrial computers, data analysis servers, and so on. Here, the peer-to-peer network is created by the edge devices situated at main and urban health centers through geo-distributed areas. Every patient is enrolled to an edge service node which is responsible for gathering patient data, processing it, raising alarms in emergency scenarios, and communicating with the Cloud for backup and long-term storage [22; 23; 24; 25; 26; 27; 28];
3. **Cloud-Blockchain layer:** Various Cloud suppliers and data centers are included in this layer. These data centers (DC) are responsible for providing services (such as  
Figure 2: Applications of fog computing.  
processing, calculation, and so on) to clients. An IoT-enabled industrial system mainly consists of LNs, FNs, and DCs. The LNs have resource constraints, and therefore they can send the data to FNs in the edge-blockchain layer. The FNs can assist LNs to search transactions, and can be used for mining, and adding a new block in the blockchain network. Finally, DCs are responsible for the long-term storage of data from FNs as required [29; 30; 31; 32; 33; 34; 35].  
Th proposed framework is shown in Figure 3. These devices constantly capture the patients' critical health parameters and due to limited resources and computing power, these devices can store and process part of data on the blockchain and are termed lightweight nodes (LN). Figure 3 represents our proposed secure searchable encryption system and the layout of the proposed communication. Figure 3 provides a detailed insight into the structure of the three layers that we propose for our framework. Each layer has its own function and responsibilities as described through Figure 3. The DCs send data to the edge as per the requirement. The proposed blockchain-based security and privacy scheme is used to register all three nodes, and therefore, authenticates the data transactions in the network using proposed smart contract-based ePoW. In addition, the IPFS storage system is used to store complete transactions and the generated hash string is stored in the blockchain. Finally, the DL-based privacy and security scheme is used to transform and detect intrusions in the network. This scheme is deployed as Software- as-a-Service (SaaS) at various network nodes (i.e., routers, gateways, edge servers, and Cloud data centers). Further, the framework is deployed in a large-scale distributed network model or an individual host that makes communications successfully, either in the edge-blockchain and the Cloud-blockchain layer, and further it coordinates with others to detectcyber-attacks [36; 37; 38; 39; 40; 41].