Resumen
The Internet of Medical Things (IoMT) uses wireless networks to help patients to communicate with healthcare professionals. Therefore, IoMT devices suffer from a lack of security controls, just like many Internet of Things (IoT) gadgets. Thus, in this paper, we develop a system that uses a blockchain to secure medical data for each transaction between physicians and patients. This system also helps the physician to send the treatment to the blockchain. The blockchain creates a new block for the treatment and connects it with the previous block. This system also helps patients to access their treatment through the blockchain. SHA-256 is used to hash the new block using some information about the last block. We modify SHA-256 using the LZ4 algorithm to compress data. We also prevent a new block hash code starting with a specific number of zeros, which made the proposed system give a time complexity better than all related work. In this paper, we also develop a party-authentication technique that ensures the two parties of the transaction. The proposed system makes a transaction with O(n) time complexity. Thus, our system takes 1 s to create a block for the transaction. We also make a green computing algorithm comparison between our proposed system and the blockchain version. This comparison proves that our proposed method consumes less energy to create a new block. This paper proves that our method performs better than all previous blockchain versions.