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:
- Initializes the v1.2.2 Cache using a zero-length key (not a four-byte all-zero seed).
- 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.
- 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.
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, andrandomx_release_cache, but there is no Cache-memory getter analogous torandomx_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_cachelayout, 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:
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.