diff options
author | Glenn Willen <gwillen@nerdnet.org> | 2019-03-05 18:55:40 -0800 |
---|---|---|
committer | Glenn Willen <gwillen@nerdnet.org> | 2019-03-26 17:38:00 -0700 |
commit | afd20a25f2937fee8d992c279631fa26cde4a7c8 (patch) | |
tree | 38e654a027437a32296fd432b0fa6069624aace5 /src/psbt.h | |
parent | 8e1704c01537d1750555de23bfae00efa5864b3e (diff) |
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.
Diffstat (limited to 'src/psbt.h')
-rw-r--r-- | src/psbt.h | 5 |
1 files changed, 5 insertions, 0 deletions
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<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 |