Bitcoin Core 31.99.0
P2P Digital Currency
Classes | Functions
psbt_tests.cpp File Reference
#include <addresstype.h>
#include <key.h>
#include <psbt.h>
#include <script/descriptor.h>
#include <script/script.h>
#include <script/signingprovider.h>
#include <script/solver.h>
#include <test/util/setup_common.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <boost/test/unit_test.hpp>
#include <string>
#include <vector>
Include dependency graph for psbt_tests.cpp:

Go to the source code of this file.

Classes

struct  PSBTOutputTest
 

Functions

static PSBTProprietary MakeProprietary (uint64_t subtype, uint8_t key_data, uint8_t value)
 
void CheckTimeLock (const std::string &base64_psbt, std::optional< uint32_t > timelock)
 
 BOOST_AUTO_TEST_CASE (psbt2_timelock_test)
 
 BOOST_AUTO_TEST_CASE (psbt2_addinput)
 
 BOOST_AUTO_TEST_CASE (psbt2_addoutput)
 
 BOOST_AUTO_TEST_CASE (merge_proprietary_fields)
 
 BOOST_AUTO_TEST_CASE (update_psbt_output_keypaths)
 
 BOOST_AUTO_TEST_CASE (update_psbt_output_redeem_script)
 
 BOOST_AUTO_TEST_CASE (update_psbt_output_witness_script)
 
 BOOST_AUTO_TEST_CASE (update_psbt_output_miniscript_timelock)
 
 BOOST_AUTO_TEST_CASE (update_psbt_output_taproot)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/9]

BOOST_AUTO_TEST_CASE ( merge_proprietary_fields  )

Definition at line 191 of file psbt_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/9]

BOOST_AUTO_TEST_CASE ( psbt2_addinput  )

Definition at line 65 of file psbt_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/9]

BOOST_AUTO_TEST_CASE ( psbt2_addoutput  )

Definition at line 164 of file psbt_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/9]

BOOST_AUTO_TEST_CASE ( psbt2_timelock_test  )

Definition at line 51 of file psbt_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/9]

BOOST_AUTO_TEST_CASE ( update_psbt_output_keypaths  )

Definition at line 262 of file psbt_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/9]

BOOST_AUTO_TEST_CASE ( update_psbt_output_miniscript_timelock  )

Definition at line 295 of file psbt_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/9]

BOOST_AUTO_TEST_CASE ( update_psbt_output_redeem_script  )

Definition at line 275 of file psbt_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/9]

BOOST_AUTO_TEST_CASE ( update_psbt_output_taproot  )

Definition at line 305 of file psbt_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/9]

BOOST_AUTO_TEST_CASE ( update_psbt_output_witness_script  )

Definition at line 285 of file psbt_tests.cpp.

Here is the call graph for this function:

◆ CheckTimeLock()

void CheckTimeLock ( const std::string &  base64_psbt,
std::optional< uint32_t >  timelock 
)

Definition at line 33 of file psbt_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeProprietary()

static PSBTProprietary MakeProprietary ( uint64_t  subtype,
uint8_t  key_data,
uint8_t  value 
)
static

Definition at line 23 of file psbt_tests.cpp.

Here is the caller graph for this function: