MCPcopy Create free account
hub / github.com/ElementsProject/elements / DecodeRawPSBT

Function DecodeRawPSBT

src/psbt.cpp:811–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

809}
810
811bool DecodeRawPSBT(PartiallySignedTransaction& psbt, const std::string& tx_data, std::string& error)
812{
813 CDataStream ss_data(MakeByteSpan(tx_data), SER_NETWORK, PROTOCOL_VERSION);
814 try {
815 ss_data >> psbt;
816 if (!ss_data.empty()) {
817 error = "extra data after PSBT";
818 return false;
819 }
820 } catch (const std::exception& e) {
821 error = e.what();
822 return false;
823 }
824 return true;
825}
826
827uint32_t PartiallySignedTransaction::GetVersion() const
828{

Callers 3

DecodeBase64PSBTFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
gotoLoadPSBTMethod · 0.85

Calls 2

MakeByteSpanFunction · 0.85
emptyMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.68