Hashing functions, which are created to provide brief and erratic digests for the message entered, are the primary cryptographic primitives used in blockchain networks. Hashing is employed in blockchain networks to create linked block lists, which offer safe and secure distributed repository storage for critical information. Due to the unique nature of the hash search problem in blockchain networks, the most parallelization of calculations is possible. This technical report presents a performance evaluation of three popular hashing algorithms Blake3, SHA-256, and SHA-512. These hashing algorithms are widely used in various applications, such as digital signatures, message authentication, and password storage. It then discusses the performance metrics used to evaluate the algorithms, such as hash rate/throughput and memory usage. The evaluation is conducted on a range of hardware platforms, including desktop and VMs. The evaluation includes synthetic benchmarks. The results of the evaluation show that Blake3 generally outperforms both SHA-256 and SHA-512 in terms of throughput and latency. However, the performance advantage of Blake3 varies depending on the specific hardware platform and the size of the input data. The report concludes with recommendations for selecting the most suitable hashing algorithm for a given application, based on its performance requirements and security needs. The evaluation results can also inform future research and development efforts to improve the performance and security of hashing algorithms.
翻译:哈希函数旨在为输入消息生成简短且无规律的摘要,是区块链网络中使用的核心密码学原语。在区块链网络中,哈希被用于创建链接的区块列表,为关键信息提供安全可靠的分布式存储库。由于区块链网络中哈希搜索问题的特殊性,计算过程可实现最大程度的并行化。本技术报告对三种主流哈希算法 Blake3、SHA-256 和 SHA-512 进行了性能评估。这些哈希算法广泛应用于数字签名、消息认证和密码存储等多种场景。报告阐述了用于评估算法的性能指标,如哈希率/吞吐量和内存使用率。评估在一系列硬件平台上进行,包括桌面计算机和虚拟机,并包含合成基准测试。评估结果表明,在吞吐量和延迟方面,Blake3 通常优于 SHA-256 和 SHA-512。然而,Blake3 的性能优势因具体硬件平台和输入数据大小的不同而有所差异。报告最后根据性能要求和安全需求,为特定应用场景选择最合适的哈希算法提供了建议。评估结果还可为未来提升哈希算法性能与安全性的研发工作提供参考。