## 3 Methodology
### Proposed Secure Search Algorithm  
We have designed a novel secure searchable algorithm that provides the facility to the users to encrypt at their one side and upload it to the distributed ledger. Through our proposed extended secure searchable algorithm user can anonymously search the keywords using blockchain users API. In case the user lost the key, he or she can revoke the policy and can request a new key. It provides protection against active collusion attacks. Algorithm 1 describes the working of the Algorithm 1 and the flow of attribute signing techniques that we proposed for the transactions and encryption of the participants attributes. Our proposed framework consist of four main participants, i.e., admin, doctor, patient, and lab technician. We have proposed delegation policies and algorithms for each node. Our proposed framework is illustrated through Figure 8. A patient registers to a hospital using the blockchain API (Application Programming Interface). Doctors and patients can store, retrieve, and update electronic health records (EHR) in the blockchain repository through smart contracts. We have proposed a novel secure search-able algorithm which provides the facility to the users to search the encrypted keywords and access it without decryption. Access control policies are embedded in smart contracts, which check the level of integrity and security of any users who want to access the EHR. Users' behaviors and activities are monitored and classified through DL techniques. ```
0: Initiate Master public key Ppub-s of domain, system parameters of domain, message M\({}_{0}\), e's identity I\({}_{\text{D}e}\), and digital signature (h\({}_{0}\), S\({}_{0}\))
0: Result of verification: pass or fail
1: Convert the Value of h\({}_{0}\) to int
2: if h\({}_{0}\in\) [1, N \(\times\) 1] Not \(\leq\), the verif fails
3: Compt Value t = g h\({}_{0}\) in G\({}^{T}\)
4: Compt \(\omega\)= H\({}_{2}\)(h l \(\delta\), N)
5: Compt \(\delta\) = (r \(\times\) h) mod N; if l = 0, move to sage 2)
6: Compt \(\alpha\) = H1(De \(\mid\) l hid, N)
7: Compt Value P = [h\({}_{1}\)]P\({}_{2}\) + Ppub-s in G2
8: Compt Value u = e(S\({}_{0}\), P) in G\({}^{T}\)
9: Compt w\({}_{0}\) = u \(\cdot\) t in G\({}^{T}\)
10: convt the Value of w\({}_{0}\) to a bit string
11: Compt int h\({}_{2}\) = H\({}_{2}\)(M\({}_{0}\) l \(\mid\) w\({}_{0}\), N)
12: if h\({}_{2}\) = h\({}_{0}\) holds, the verification
13: Otherwise, the verification fails
14: End Compt
15: Ret O
16: End Procedure

Figure 8: Proposed Deep Learning-based Intrusion detection model for our blockchain framework. ```
1:Enhance Manifold Analysis Evaluation of both the IoMT end
2:SelectIoMT device for comm
3:Get acquisition, hash, electronic medical records (EMR)
4:Extract EMRFromRepository from EMR (EMR name)
5:EMR, valid SHA256 checkHash (EMR, hash)
6:if EMR, valid is true, then
7:Get the Connect Length using Connect length (Connect)
8:Generate Indications(Connect length) Generate Indications(Connect length)
9:F Blockchain transaction addAnalysis(i, indications)
10:deleteLocalEMR
11:end if (EMR)
12:end
13:end
```
**Algorithm 2** Algorithm Method Evaluation
```
1:Public Key. 2:Verification result: succeed or fail
3:Write r \(\in\) [1, N \(\times\) 1]
4:Calculate \(\omega\) = g\({}^{\text{r}}\) in G\({}_{T}\)
5:Convrt the data type \(\omega\) into a bit string
6:Compt int h = H\({}_{2}\)(M \(|\) | w, N)
7:Compt int l = (r \(\times\) h) mod N
8:if l = 0, go to step 2
9:Compt value \(\alpha\) = [l] ske in G1
10:Convrt value h and S to a byte string, output (h,S)
11:END If
12:End Procedure's
```

**Algorithm 3** Access Control Algorithm

## 4 Proposed Access Control System for Framework

In this section, the complete details about the cross-domain permissioned blockchain framework are explained. Figures 8 and 9 represent the detailed structure of the proposed framework. The framework includes three layers. Herein, Layer 1 is known as the user-level layer, that is responsible for interface with a patient, medical practitioners and doctors. Layer 2 is called the underlay layer.