Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1function(add_example name)2set(target_name ${name}_example)3add_executable(${target_name} ${name}.c)4target_include_directories(${target_name} PRIVATE5${PROJECT_SOURCE_DIR}/include6)7target_link_libraries(${target_name}8secp256k19$<$<PLATFORM_ID:Windows>:bcrypt>10)11add_test(NAME secp256k1.example.${name} COMMAND ${target_name})12set_tests_properties(secp256k1.example.${name} PROPERTIES13LABELS secp256k1_example14)15endfunction()17add_example(ecdsa)19if(SECP256K1_ENABLE_MODULE_ECDH)20add_example(ecdh)21endif()23if(SECP256K1_ENABLE_MODULE_SCHNORRSIG)24add_example(schnorr)25endif()27if(SECP256K1_ENABLE_MODULE_ELLSWIFT)28add_example(ellswift)29endif()31if(SECP256K1_ENABLE_MODULE_MUSIG)32add_example(musig)33endif()35if(SECP256K1_ENABLE_MODULE_SILENTPAYMENTS)36add_example(silentpayments)37endif()
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.