55 std::optional<CMutableTransaction> tx =
psbt.tx;
68 (
void)output.IsNull();
71 for (
size_t i = 0; i <
psbt.tx->vin.size(); ++i) {
98 for (
unsigned int i = 0; i <
psbt_merge.tx->vin.size(); ++i) {
101 for (
unsigned int i = 0; i <
psbt_merge.tx->vout.size(); ++i) {
#define Assert(val)
Identity function.
An output of a transaction.
std::string ConsumeRandomLengthString(size_t max_length)
Minimal stream for reading from an existing byte array by std::span.
PSBTAnalysis AnalyzePSBT(PartiallySignedTransaction psbtx)
Provides helpful miscellaneous information about where a PSBT is in the signing workflow.
std::string PSBTRoleName(PSBTRole role)
bool DecodeRawPSBT(PartiallySignedTransaction &psbt, std::span< const std::byte > tx_data, std::string &error)
Decode a raw (binary blob) PSBT into a PartiallySignedTransaction.
bool CombinePSBTs(PartiallySignedTransaction &out, const std::vector< PartiallySignedTransaction > &psbtxs)
Combines PSBTs with the same underlying transaction, resulting in a single PSBT with all partial sign...
size_t CountPSBTUnsignedInputs(const PartiallySignedTransaction &psbt)
Counts the unsigned inputs of a PSBT.
bool FinalizeAndExtractPSBT(PartiallySignedTransaction &psbtx, CMutableTransaction &result)
Finalizes a PSBT if possible, and extracts it to a CMutableTransaction if it could be finalized.
bool PSBTInputSigned(const PSBTInput &input)
Checks whether a PSBTInput is already signed by checking for non-null finalized fields.
bool FinalizePSBT(PartiallySignedTransaction &psbtx)
Finalizes a PSBT if possible, combining partial signatures.
auto MakeByteSpan(const V &v) noexcept
A mutable version of CTransaction.
A structure for PSBTs which contains per output information.
A version of CTransaction with the PSBT format.
Holds the results of AnalyzePSBT (miscellaneous information about a PSBT)
void SeedRandomStateForTest(SeedRand seedtype)
Seed the global RNG state for testing and log the seed value.
@ ZEROS
Seed with a compile time constant of zeros.
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
FuzzedDataProvider & fuzzed_data_provider