From afd20a25f2937fee8d992c279631fa26cde4a7c8 Mon Sep 17 00:00:00 2001 From: Glenn Willen Date: Tue, 5 Mar 2019 18:55:40 -0800 Subject: Move PSBT decoding functions from core_io to psbt.cpp Move PSBT decoding functions from core_io.h/core_read.cpp to psbt.h/psbt.cpp, to deal with a linker issue. --- src/psbt.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/psbt.h') diff --git a/src/psbt.h b/src/psbt.h index c889dad361..d89fd68c21 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -580,4 +580,9 @@ bool FinalizeAndExtractPSBT(PartiallySignedTransaction& psbtx, CMutableTransacti */ NODISCARD TransactionError CombinePSBTs(PartiallySignedTransaction& out, const std::vector& 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 -- cgit v1.2.3