Skip to content

Commit 7bfffa9

Browse files
j-bermanjeffro256kayabaNerveSyntheticBird45
committed
FCMP++/Carrot mega commit [10/24/25]
Co-authored-by: jeffro256 <jeffro256@tutanota.com> Co-authored-by: Luke Parker <lukeparker5132@gmail.com> Co-authored-by: SyntheticBird45 <someoneelse.is_on.github.rio7x@simplelogin.com>
1 parent b4ccefd commit 7bfffa9

File tree

242 files changed

+48054
-3353
lines changed

Some content is hidden

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

242 files changed

+48054
-3353
lines changed

.gitmodules

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

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ if(NOT MANUAL_SUBMODULES)
380380
check_submodule(external/rapidjson)
381381
check_submodule(external/randomx)
382382
check_submodule(external/supercop)
383+
check_submodule(external/mx25519)
383384
endif()
384385
endif()
385386

@@ -452,7 +453,7 @@ elseif(CMAKE_SYSTEM_NAME MATCHES ".*BSDI.*")
452453
set(BSDI TRUE)
453454
endif()
454455

455-
include_directories(external/rapidjson/include external/easylogging++ src contrib/epee/include external external/supercop/include)
456+
include_directories(external/rapidjson/include external/easylogging++ src contrib/epee/include external external/supercop/include external/mx25519/include)
456457

457458
if(MINGW)
458459
set(DEFAULT_STATIC true)
@@ -479,6 +480,7 @@ set(PIC_FLAG "-fPIC")
479480
if(STATIC)
480481
set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
481482
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DZMQ_STATIC")
483+
add_definitions("-DMX25519_STATIC")
482484
endif()
483485

484486
option(SANITIZE "Use ASAN memory sanitizer" OFF)
@@ -1061,6 +1063,9 @@ endif()
10611063
add_definitions(-DBOOST_ASIO_ENABLE_SEQUENTIAL_STRAND_ALLOCATION)
10621064
add_definitions(-DBOOST_NO_AUTO_PTR)
10631065
add_definitions(-DBOOST_UUID_DISABLE_ALIGNMENT) # This restores UUID's std::has_unique_object_representations property
1066+
# Boost has two conflicting save/load impls for `std::variant`, one in serialization/variant.hpp,
1067+
# and one in serialization/std_variant.hpp. This macro disables the one in variant.hpp.
1068+
add_definitions(-DBOOST_NO_CXX17_HDR_VARIANT)
10641069

10651070
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
10661071
if(MINGW)

external/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ add_subdirectory(db_drivers)
6767
add_subdirectory(easylogging++)
6868
add_subdirectory(qrcodegen)
6969
add_subdirectory(randomx EXCLUDE_FROM_ALL)
70+
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
@@ -83,12 +83,15 @@ endfunction ()
8383
include(Version)
8484
monero_add_library(version SOURCES ${CMAKE_BINARY_DIR}/version.cpp DEPENDS genversion)
8585

86+
add_subdirectory(carrot_core)
87+
add_subdirectory(carrot_impl)
8688
add_subdirectory(common)
8789
add_subdirectory(crypto)
8890
add_subdirectory(ringct)
8991
add_subdirectory(checkpoints)
9092
add_subdirectory(cryptonote_basic)
9193
add_subdirectory(cryptonote_core)
94+
add_subdirectory(fcmp_pp)
9295
add_subdirectory(lmdb)
9396
add_subdirectory(multisig)
9497
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)