Journal "Software Engineering"
a journal on theoretical and applied science and technology
ISSN 2220-3397

Issue N6 2021 year

DOI: 10.17587/prin.12.295-301
Transaction Accelerator for Blockchain Networks Based on Cryptonight Algorithm using Specialized Multicore Processor MALT
A. A. Titova , titova_a@maltsystem.com, V. A. Roganov, G. A. Lukyanchenko, S. G. Elizarov, Digital Microelectronics Design Center of M. V. Lomonosov Moscow State University Faculty of Physics, Moscow, 119991, Russian Federation
Corresponding author: Titova Anna A., Researcher, Digital Microelectronics Design Center of M. V. Lomonosov Moscow State University Faculty of Physics, Moscow, 119991, Russian Federation, E-mail: titova_a@maltsystem.com
Received on March 04, 2021
Accepted on June 07, 2021

Cryptonight is one of the possible base algorithms for cryptocurrencies. It belongs to the group of memory-bound algorithms, designed to prevent mining on specialized processors and ASICs by using 2MB of memory for each hash. Thus, it is not easy to adapt for parallel computing. The aim of this work is to prove theoretically and experimentally that this algorithm can still be optimized for a specialized multicore processor to make mining more energetically efficient than on CPU. This article describes the process of optimization, which was conducted using the following methods: data clustering, storage of repeatedly used data in local memory, usage of SIMD for parallel computing, data prefetch. Those methods are first explained, their supposed effectiveness analyzed, and then implemented. As a result, two schemes of algorithm optimization were created: first one is based on the usage of MALTs slave cores, which compute hashes independently. Although memory-boundness creates multiple problems, we were able to increase the efficiency by clustering data. The second scheme is more complicated, it suggests using SIMD processors for most cryptographic computations and also involves data prefetch, which becomes possible if more than one hash is calculated on one core at the same time. All the results are demonstrated in the paper and they indicate that it is indeed possible to optimize Cryptonight for a specialized multicore processor MALT. The practical results show that energy efficiency has increased 5 times in comparison with CPU.

Keywords: multicore processors, specialized processors, SIMD, cryptographic algorithms, Cryptonight, mining, memory-bound algorithms, cryptocurrencies
pp. 295–301
For citation:
Titova A. A., Roganov V. A., Lukyanchenko G. A., Elizarov S. G. Transaction Accelerator for Blockchain Networks Based on Cryptonight Algorithm using Specialized Multicore Processor MALT, Programmnaya Ingeneria, 2021, vol. 12, no. 6, pp. 295—301.