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§

Structs§

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

Enums§

  • This enum specifies the possible errors that may occur.