Skip to main content
. 2021 May 18;21(10):3515. doi: 10.3390/s21103515
Algorithm 2. IoT Information Block Hash Connection.
1: initialize IoT information block
2: while IoT information block > 0 do
3:    Generate random blocks in n-bit form using R0,1n
4:    Server checks its blocks
5:    if Replication block data present in blocks  then
6       Makes merkle tree in republication block
7:       Calculates block hash from merkle tree
8:       Inform other IoT devices
9:    else
10:      Request replication block data
11:    end if
12: end while
13: return IoT devices generates the new block