Skip to content

Request: supported raw Cache export for v1.2.2 conformance testing #335

Description

@haroldgjc-cloud

Context

I am working on external conformance verification for a clean-room RandomX v1 implementation. The first comparison target is the initialized RandomX v1.2.2 Cache byte image.

The public v1.2.2 C API provides randomx_alloc_cache, randomx_init_cache, and randomx_release_cache, but there is no Cache-memory getter analogous to randomx_get_dataset_memory. The reference benchmark also does not appear to have a raw Cache export mode.

For provenance reasons, I do not want to recover the bytes through debugger scraping, allocator interception, assumptions about the opaque randomx_cache layout, or other private-ABI techniques.

Request

Is there an existing maintainer-supported way to export the initialized v1.2.2 Cache memory? If not, would the project consider a small source-level conformance helper or supported API/CLI path that:

  1. Initializes the v1.2.2 Cache using a zero-length key (not a four-byte all-zero seed).
  2. Writes exactly 268,435,456 bytes:
    • 262,144 ordered blocks;
    • 1,024 bytes per block;
    • each block represented by its 128 little-endian 64-bit words in algorithm order.
  3. Allows the producer to retain the exact RandomX revision, build command, OS/architecture/compiler details, and raw-file SHA-256.

A pointer to an already supported mechanism would also fully answer the request.

This artifact would be used only as a byte-for-byte conformance input. A matching digest would not by itself be described as independent review or provenance attestation. No Dataset export or mining integration is being requested.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions