## 4 Blockchain Technology for Security
### Blockchain-Based Technology Is Being Planned for WSNs  
Every block transmits non-rewritable data, ensuring an extraordinarily high level of security. When it comes to secret WSNs, this security is beneficial. A new WSN is being constructed using the most recent blockchain technology [65]. Budget constraints or operational challenges can stymie the development of a WSN. The problems normally begin in local areas and progressively spread to larger areas. The most appropriate method for reporting these issues is to use the current popular blockchain methodology for Bitcoin. \begin{table}
\begin{tabular}{c c c c} \hline \hline
**Property** & **Public Block Chain** & \
\begin{tabular}{c} **Consortium Block Chain** \\ \end{tabular} & **Private Block Chain** \\ \hline Consensus & All miners & Selected set of nodes &
\begin{tabular}{c} Within one \\ organization \\ \end{tabular} \\ \hline Red permission & Public & Public or Restricted & Public or Restricted \\ \hline Immutability & Impossible to temper & Could be temper & Could be temper \\ \hline Efficiency & LOW & High & High \\ \hline Centralization & No & Partial & yes \\ \hline Consensus Process & Permission-less & Needs permission & Needs permission \\ \hline \hline \end{tabular}
\end{table} 
Table 2: Evaluation of BCT types. Figure 6: BCT Configuration. Several sensor devices are linked to each significant node. A string of numbers indicating the chronological sequence in which the blockchain linkages were created is also included in each node. In addition to its sensor data, each blockchain also gathers measurement data from the sensor nodes of other blocks. The central node receives the same sensor data as the new block whenever a new block is formed for each node block. The approach proposed in this study strengthens the security of the interconnecting block methodology by evaluating whichever block to link first in chronological order. Before connecting successfully, authentication using the hash function and password keys approach must be used. Furthermore, no efficiency issue with Bitcoin mining has been resolved. Each primary node is connected to several sensor gadgets. Each individual node also includes a series of numbers showing the order in which the blockchain links were established. Each blockchain collects measurement data from the sensor nodes of other blocks in addition to its sensor data. Each time a new block is formed for a node block, the central node also receives the new block's sensor data. By analyzing which block to link first in chronological sequence, the technique suggested in this research increases the security of the interconnecting block methodology. Before connecting successfully, authentication using the hash function and password keys approach must be used. Furthermore, no efficiency issue with Bitcoin mining has been resolved. The current blockchain node connection is shown in Figure 7.  
As a result, each node keeps track of sensor information for itself and other nodes, and no single node serves as the main center point node, proving the use of decentralization. The P2P network connects all blockchain nodes, and the team uses the safest encryption possible based on network cryptography computations. The incorporation of the blockchain technology method in a WSNs structure is depicted in Figure 8 as shown below. In addition, the ensemble's renewing functions have been expanded, allowing the blockchain to renew links. Although the order in which the linkages are formed may differ,  
Figure 8: In a typical WSN, a blockchain planning instance for preferential nodes. Figure 7: Incorporation of a blockchain approach into the structure of a WSN. the accuracy of the measurement data is assured. Every 30 min, the system's starting condition triggers a blockchain reset. The asymmetric cryptographic method connects the node orders indicated in the figure, which shortens the mining process and boosts performance effectiveness.