Merge ElementsProject/elements#1580: build: force the surjectionproof CMake option
Some checks are pending
CI / test each commit (push) Waiting to run
CI / macOS 14 native, arm64, no depends, sqlite only, gui (push) Waiting to run
CI / macOS 14 native, arm64, fuzz (push) Waiting to run
CI / Win64 native, VS 2022 (push) Waiting to run
CI / Win64 native fuzz, VS 2022 (push) Waiting to run
CI / ASan + LSan + UBSan + integer, no depends, USDT (push) Waiting to run
CI / lint (push) Waiting to run

68affce5cc build(secp256k1): force surjectionproof module (Abdullah1738)

Pull request description:

  The Elements wrapper currently forces `SECP256K1_ENABLE_MODULE_SURJECTION`, but the vendored secp256k1 subtree defines `SECP256K1_ENABLE_MODULE_SURJECTIONPROOF`. This leaves surjection proof support enabled only by the dependency default and lets an external cache value disable it.

ACKs for top commit:
  tomt1664:
    ACK 68affce5cc tested locally.

Tree-SHA512: 42d33aad1e1862806707bd738e60914b34556dc5aef7a7d7f43e966400b4f35de128b512b9837eae3c1303eabf84ea24e86a9c7f7f0d5054d9147af9e7ecba51
This commit is contained in:
merge-script 2026-08-14 08:05:40 +02:00
commit b7fc5d080a
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697

View file

@ -26,7 +26,7 @@ message("")
message("Configuring secp256k1 subtree...")
set(SECP256K1_ENABLE_MODULE_GENERATOR ON CACHE BOOL "" FORCE)
set(SECP256K1_ENABLE_MODULE_RANGEPROOF ON CACHE BOOL "" FORCE)
set(SECP256K1_ENABLE_MODULE_SURJECTION ON CACHE BOOL "" FORCE)
set(SECP256K1_ENABLE_MODULE_SURJECTIONPROOF ON CACHE BOOL "" FORCE)
set(SECP256K1_ENABLE_MODULE_WHITELIST ON CACHE BOOL "" FORCE)
set(SECP256K1_DISABLE_SHARED ON CACHE BOOL "" FORCE)
set(SECP256K1_ENABLE_MODULE_ECDH ON CACHE BOOL "" FORCE)