Crate randomx_rs

Source
Expand description

§RandomX

The randomx-rs crate provides bindings to the RandomX proof-of-work (PoW) system.

From the RandomX github repo:

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

Read more about how RandomX works in the design document.

Modules§

test_utils
Test utilities for fuzzing

Structs§

RandomXCache
The Cache is used for light verification and Dataset construction.
RandomXDataset
The Dataset is a read-only memory structure that is used during VM program execution.
RandomXFlag
RandomX Flags are used to configure the library.
RandomXVM
The RandomX Virtual Machine (VM) is a complex instruction set computer that executes generated programs.

Enums§

RandomXError
This enum specifies the possible errors that may occur.