Comparative Study on Hash Function Algorithms for Blockchain Technology

Authors

  • Kah Yien Pun Universiti Tun Hussein Onn Malaysia Author
  • Kamaruddin Malik Mohamad Universiti Tun Hussein Onn Malaysia Author
  • Sofia Najwa Ramli Universiti Tun Hussein Onn Malaysia Author

Keywords:

Security, Hash, SHA256, BLAKE2b, KECCAK256

Abstract

Cryptocurrency is the use of cryptography to create and distribute currency units making cryptocurrency a peer-to-peer digital exchange system. Bitcoin is a popular cryptocurrency that uses hash algorithms for its proof-of-work consensus mechanism. However, there are some specific attacks in Bitcoin regarding the hash function speed such as double spending and 51% attack. Therefore, this research paper is to make a comparison study of hash algorithms based on speed to increase the security of the Bitcoin blockchain. The comparison was made in Java programming by calculating the hashing speed to hash the test data of 1MB size in milliseconds with 100, 500, and 1000 loops repeated 10 times to get the average result using SHA256, KECCAK256, and BLAKE2b. In the 1000-loop experiment, KECCAK256 is approximately 33.29% faster than SHA256, while BLAKE2b is approximately 47.18% faster. According to the comparison analysis, BLAKE2b’s hashing speed is the fastest among the selected hash algorithms.

Downloads

Download data is not yet available.

Downloads

Published

29-08-2024

Issue

Section

Articles

How to Cite

Pun, K. Y., Mohamad, K. M. ., & Ramli, S. N. . (2024). Comparative Study on Hash Function Algorithms for Blockchain Technology. Applied Information Technology And Computer Science, 5(1), 16-33. https://penerbit.uthm.edu.my/periodicals/index.php/aitcs/article/view/12125