#pow #optimized #cpu #algorithm #random-x #proof-of-work

randomx_rust

RandomX is a proof-of-work (PoW) algorithm that is optimized for general-purpose CPUs

1 unstable release

Uses old Rust 2015

0.1.1 Feb 26, 2024

#12 in #random-x

Apache-2.0

440KB
10K SLoC

C++ 5K SLoC // 0.1% comments Visual Studio Project 2K SLoC Assembly 1K SLoC // 0.2% comments C 809 SLoC // 0.2% comments Rust 431 SLoC // 0.0% comments Bitbake 267 SLoC GNU Style Assembly 182 SLoC Visual Studio Solution 166 SLoC PowerShell 34 SLoC // 0.5% comments

Randomx - Rust

RandomX is a proof-of-work (PoW) algorithm that is optimized for general-purpose CPUs. RandomX uses random code execution (hence the name) together with several memory-hard techniques to minimize the efficiency advantage of specialized hardware.

This is a rust build of the current Randomx algorithm

Build steps

To build the project execute the following line in the terminal:

cargo build

What was built

The rust library of the RandomX algorithm

Dependencies

~0.2–3MB
~48K SLoC