Research Article
Data Integrity Time Optimization of a Blockchain IoT Smart Home Network Using Different Consensus and Hash Algorithms
Algorithm 1
MMHT algorithm process steps
Input: | 1. List of Hashes (listOfHashes) | 2. Count trigger = n | 3. Selected algorithm | Algorithm Steps: | 1. Start Process, Initialize Count (n) hashes | 2. Condition, listOfHashes > Count (n) hashes, if YES go to step 3, if NO go to step 7 | 3. Set Count (n) hashes by taking top count(n) transactions from listOfHashes. The remaining transactions are set to restOfHashes. | 4. Use Merkel Root to hash Count (n) hashes based on selected algorithm and add it to the restOfHashes. | 5. Use CHT to hash the restOfHashes based on selected algorithm, getting the final hash. Go to Step 8. | 7. Use MHT to hash listOfHashes based on selected algorithm, getting the final hash. Go to Step 8. | 8. End of Process |
|