- Add Blake3 cryptographic hash library (portable C implementation) - Create Blake3DCR wrapper for Decred mining (180-byte block headers) - Register BLAKE3_DCR algorithm ID (0x62100000) with dcr/decred aliases - Support for block header hashing and nonce iteration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
385 B
CMake
17 lines
385 B
CMake
if (WITH_BLAKE3DCR)
|
|
add_definitions(/DXMRIG_ALGO_BLAKE3DCR)
|
|
|
|
list(APPEND HEADERS_CRYPTO
|
|
src/crypto/blake3dcr/Blake3DCR.h
|
|
)
|
|
|
|
list(APPEND SOURCES_CRYPTO
|
|
src/crypto/blake3dcr/Blake3DCR.cpp
|
|
)
|
|
|
|
# Add Blake3 library
|
|
add_subdirectory(src/3rdparty/blake3)
|
|
set(BLAKE3_LIBRARY blake3)
|
|
else()
|
|
remove_definitions(/DXMRIG_ALGO_BLAKE3DCR)
|
|
endif()
|