Skip to content

Commit 6f6910a

Browse files
j-bermanjeffro256kayabaNervevtnerdSyntheticBird45
committed
FCMP++/Carrot mega commit [5/6/26]
Co-authored-by: jeffro256 <jeffro256@tutanota.com> Co-authored-by: Luke Parker <lukeparker5132@gmail.com> Co-authored-by: Lee *!* Clagett <code@leeclagett.com> Co-authored-by: SyntheticBird45 <someoneelse.is_on.github.rio7x@simplelogin.com> Co-authored-by: jeetrex17 <jeetrex@tutamail.com> Co-authored-by: UkoeHB <ukoehb@users.noreply.github.com>
1 parent 5f5b120 commit 6f6910a

268 files changed

Lines changed: 52119 additions & 3518 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitmodules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@
1111
[submodule "external/gtest"]
1212
path = external/gtest
1313
url = https://github.com/google/googletest.git
14+
[submodule "external/fcmp-plus-plus"]
15+
path = external/fcmp-plus-plus
16+
url = https://github.com/kayabaNerve/fcmp-plus-plus.git
17+
[submodule "external/mx25519"]
18+
path = external/mx25519
19+
url = https://github.com/jeffro256/mx25519
20+
branch = unclamped

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ if(NOT MANUAL_SUBMODULES)
365365
check_submodule(external/rapidjson)
366366
check_submodule(external/randomx)
367367
check_submodule(external/supercop)
368+
check_submodule(external/mx25519)
368369
endif()
369370
endif()
370371

@@ -436,7 +437,7 @@ elseif(CMAKE_SYSTEM_NAME MATCHES ".*BSDI.*")
436437
set(BSDI TRUE)
437438
endif()
438439

439-
include_directories(external/rapidjson/include external/easylogging++ src contrib/epee/include external external/supercop/include)
440+
include_directories(external/rapidjson/include external/easylogging++ src contrib/epee/include external external/supercop/include external/mx25519/include)
440441

441442
if(MINGW)
442443
set(DEFAULT_STATIC true)
@@ -463,6 +464,7 @@ set(PIC_FLAG "-fPIC")
463464
if(STATIC)
464465
set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
465466
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DZMQ_STATIC")
467+
add_definitions("-DMX25519_STATIC")
466468
endif()
467469

468470
option(SANITIZE "Use ASAN memory sanitizer" OFF)
@@ -957,6 +959,9 @@ endif()
957959
add_definitions(-DBOOST_ASIO_ENABLE_SEQUENTIAL_STRAND_ALLOCATION)
958960
add_definitions(-DBOOST_NO_AUTO_PTR)
959961
add_definitions(-DBOOST_UUID_DISABLE_ALIGNMENT) # This restores UUID's std::has_unique_object_representations property
962+
# Boost has two conflicting save/load impls for `std::variant`, one in serialization/variant.hpp,
963+
# and one in serialization/std_variant.hpp. This macro disables the one in variant.hpp.
964+
add_definitions(-DBOOST_NO_CXX17_HDR_VARIANT)
960965

961966
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
962967
if(MINGW)

external/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ add_subdirectory(db_drivers)
4545
add_subdirectory(easylogging++)
4646
add_subdirectory(qrcodegen)
4747
add_subdirectory(randomx EXCLUDE_FROM_ALL)
48+
add_subdirectory(mx25519)

external/mx25519

Submodule mx25519 added at e808a64

src/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,15 @@ endfunction ()
8181
include(Version)
8282
monero_add_library(version SOURCES ${CMAKE_BINARY_DIR}/version.cpp DEPENDS genversion)
8383

84+
add_subdirectory(carrot_core)
85+
add_subdirectory(carrot_impl)
8486
add_subdirectory(common)
8587
add_subdirectory(crypto)
8688
add_subdirectory(ringct)
8789
add_subdirectory(checkpoints)
8890
add_subdirectory(cryptonote_basic)
8991
add_subdirectory(cryptonote_core)
92+
add_subdirectory(fcmp_pp)
9093
add_subdirectory(lmdb)
9194
add_subdirectory(multisig)
9295
add_subdirectory(net)

src/blockchain_db/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ target_link_libraries(blockchain_db
4646
common
4747
cncrypto
4848
cryptonote_basic
49+
fcmp_pp
4950
ringct_basic
5051
${LMDB_LIBRARY}
5152
${Boost_FILESYSTEM_LIBRARY}

0 commit comments

Comments
 (0)