Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ include/hotstuff/config.h
/test/test_secp256k1
/test/test_concurrent_queue
core

.idea/

hotstuff-keygen_bls

hotstuff.cbp

log*
19 changes: 17 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/salticidae/cmake
add_subdirectory(salticidae)
include_directories(salticidae/include)

INCLUDE_DIRECTORIES(bls/src)
INCLUDE_DIRECTORIES(bls/build/contrib/relic/include)
INCLUDE_DIRECTORIES(bls/contrib/relic/include)

add_library( blstmp STATIC IMPORTED )
set_target_properties( blstmp PROPERTIES IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/bls/build/src/libblstmp.a )

add_library( relic_s STATIC IMPORTED )
set_target_properties( relic_s PROPERTIES IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/bls/build/contrib/relic/lib/librelic_s.a )

find_package(OpenSSL REQUIRED)
find_package(Threads REQUIRED)

Expand Down Expand Up @@ -91,11 +101,16 @@ endif()
# build tools
add_executable(hotstuff-keygen
src/hotstuff_keygen.cpp)
target_link_libraries(hotstuff-keygen hotstuff_static)
target_link_libraries(hotstuff-keygen hotstuff_static blstmp relic_s)

add_executable(hotstuff-keygen_bls
src/hotstuff_keygen_bls.cpp)
target_link_libraries(hotstuff-keygen_bls hotstuff_static blstmp relic_s)


add_executable(hotstuff-tls-keygen
src/hotstuff_tls_keygen.cpp)
target_link_libraries(hotstuff-tls-keygen hotstuff_static)
target_link_libraries(hotstuff-tls-keygen hotstuff_static blstmp relic_s)

find_package(Doxygen)
if (DOXYGEN_FOUND)
Expand Down
Loading