Skip to content

Commit

Permalink
Merge pull request #142 from AntelopeIO/libsecp256k1-0.5.0
Browse files Browse the repository at this point in the history
upgrade to libsecp256k1 v0.5.0; improves k1 signing performance ~10%
  • Loading branch information
spoonincode authored May 15, 2024
2 parents a0da117 + 17b50d7 commit 22d970f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions libraries/libfc/secp256k1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ add_library(secp256k1-internal INTERFACE)
target_include_directories(secp256k1-internal INTERFACE secp256k1/src)

target_compile_definitions(secp256k1-internal INTERFACE ENABLE_MODULE_RECOVERY=1
ECMULT_GEN_PREC_BITS=4
ENABLE_MODULE_EXTRAKEYS=1
COMB_BLOCKS=11
COMB_TEETH=6
ECMULT_WINDOW_SIZE=15
SECP256K1_STATIC=1)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64 OR CMAKE_SYSTEM_PROCESSOR STREQUAL amd64)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64)
target_compile_definitions(secp256k1-internal INTERFACE USE_ASM_X86_64=1)
endif()

Expand Down
2 changes: 1 addition & 1 deletion libraries/libfc/secp256k1/secp256k1

0 comments on commit 22d970f

Please sign in to comment.