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 |
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 |