Changeset View
Changeset View
Standalone View
Standalone View
src/psbt.h
Show First 20 Lines • Show All 521 Lines • ▼ Show 20 Lines | |||||
* @param[in] psbtxs the PSBTs to combine | * @param[in] psbtxs the PSBTs to combine | ||||
* @return error (OK if we successfully combined the transactions, other error | * @return error (OK if we successfully combined the transactions, other error | ||||
* if they were not compatible) | * if they were not compatible) | ||||
*/ | */ | ||||
NODISCARD TransactionError | NODISCARD TransactionError | ||||
CombinePSBTs(PartiallySignedTransaction &out, | CombinePSBTs(PartiallySignedTransaction &out, | ||||
const std::vector<PartiallySignedTransaction> &psbtxs); | const std::vector<PartiallySignedTransaction> &psbtxs); | ||||
//! Decode a base64ed PSBT into a PartiallySignedTransaction | |||||
NODISCARD bool DecodeBase64PSBT(PartiallySignedTransaction &decoded_psbt, | |||||
const std::string &base64_psbt, | |||||
std::string &error); | |||||
//! Decode a raw (binary blob) PSBT into a PartiallySignedTransaction | |||||
NODISCARD bool DecodeRawPSBT(PartiallySignedTransaction &decoded_psbt, | |||||
const std::string &raw_psbt, std::string &error); | |||||
#endif // BITCOIN_PSBT_H | #endif // BITCOIN_PSBT_H |