* Bring in the bitcoin utils code into plugin * Add tx creation, signing and tests * tx deserialization fix * add 10-of-14 multisig address test * Add signing and verification tests and sign_transaction_standalone * Add send_transaction_standalone function * Debug logs and additional tests * Fix for son deletion in the middle * Extend script_builder * Witness script for weighted wallet * btc_weighted_multisig_address implementation * Fix for bad-txns-nonstandard-inputs * Weighted multisignature address test * Create test tx with weighted multisig wallet * Fix the issues with tx signing * End to End test weighted multi sig * 1 or m-of-n deposit address support * Move network_type enum to the base class * btc_one_or_weighted_multisig_address implementation * Simplify redeem script * Fix error in redeem_script * btc_one_or_weighted_multisig_address tests * Refactor sidechain address mapping * CLANG code format * CLANG code format sidechain tests * Integration of deposit and rest of weighted wallets, withdrawal fee fix, whole code refactoring * Move util functions to Utils file * Add proper checks for withdraw fee * Deposit address creation, import deposit/withdraw addresses, some code cleanup Co-authored-by: satyakoneru <15652887+satyakoneru@users.noreply.github.com> Co-authored-by: gladcow <s.gladkov@pbsa.info> Co-authored-by: Srdjan Obucina <obucinac@gmail.com>
37 lines
1.2 KiB
CMake
Executable file
37 lines
1.2 KiB
CMake
Executable file
file(GLOB_RECURSE HEADERS "include/graphene/peerplays_sidechain/*.hpp")
|
|
|
|
add_library( peerplays_sidechain
|
|
peerplays_sidechain_plugin.cpp
|
|
sidechain_net_manager.cpp
|
|
sidechain_net_handler.cpp
|
|
sidechain_net_handler_bitcoin.cpp
|
|
sidechain_net_handler_peerplays.cpp
|
|
bitcoin/bech32.cpp
|
|
bitcoin/bitcoin_address.cpp
|
|
bitcoin/bitcoin_script.cpp
|
|
bitcoin/bitcoin_transaction.cpp
|
|
bitcoin/segwit_addr.cpp
|
|
bitcoin/utils.cpp
|
|
bitcoin/sign_bitcoin_transaction.cpp
|
|
)
|
|
|
|
if (SUPPORT_MULTIPLE_SONS)
|
|
message ("Multiple SONs per software instance are supported")
|
|
target_compile_definitions(peerplays_sidechain PRIVATE SUPPORT_MULTIPLE_SONS)
|
|
endif()
|
|
unset(SUPPORT_MULTIPLE_SONS)
|
|
unset(SUPPORT_MULTIPLE_SONS CACHE)
|
|
|
|
target_link_libraries( peerplays_sidechain graphene_chain graphene_app fc zmq )
|
|
target_include_directories( peerplays_sidechain
|
|
PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
|
|
|
|
install( TARGETS
|
|
peerplays_sidechain
|
|
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
INSTALL( FILES ${HEADERS} DESTINATION "include/graphene/peerplays_sidechain" )
|
|
|