Skip to content

fix(windows): enable secp256k1 recovery module in Windows builders#12

Merged
julian-CStack merged 1 commit into
stagingfrom
fix/win-sign-verify
Jul 16, 2026
Merged

fix(windows): enable secp256k1 recovery module in Windows builders#12
julian-CStack merged 1 commit into
stagingfrom
fix/win-sign-verify

Conversation

@sneurlax

Copy link
Copy Markdown
Member

The CMake build of libsecp256k1 defaults SECP256K1_ENABLE_MODULE_RECOVERY to OFF, unlike the autotools builds used by build_linux.dart, build_macos.dart, and build_wasm.dart which pass --enable-module-recovery. As a result, secp256k1.dll built by build_windows.dart (and the WSL and docker cross-compile variants) lacked secp256k1_ecdsa_sign_recoverable and the other recovery module exports, breaking recoverable ECDSA message signing (MessageSignature) on Windows with:

Invalid argument(s): Failed to lookup symbol
'secp256k1_ecdsa_sign_recoverable': The specified procedure could not
be found. (error code: 127)

Pass -DSECP256K1_ENABLE_MODULE_RECOVERY=ON in all three Windows builders.

@julian-CStack
julian-CStack merged commit f0e12da into staging Jul 16, 2026
0 of 2 checks passed
The CMake build of libsecp256k1 defaults SECP256K1_ENABLE_MODULE_RECOVERY
to OFF, unlike the autotools builds used by build_linux.dart,
build_macos.dart, and build_wasm.dart which pass --enable-module-recovery.
As a result, secp256k1.dll built by build_windows.dart (and the WSL and
docker cross-compile variants) lacked secp256k1_ecdsa_sign_recoverable
and the other recovery module exports, breaking recoverable ECDSA message
signing (MessageSignature) on Windows with:

  Invalid argument(s): Failed to lookup symbol
  'secp256k1_ecdsa_sign_recoverable': The specified procedure could not
  be found. (error code: 127)

Pass -DSECP256K1_ENABLE_MODULE_RECOVERY=ON in all three Windows builders.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants