Changeset View
Changeset View
Standalone View
Standalone View
src/psbt.h
Show First 20 Lines • Show All 317 Lines • ▼ Show 20 Lines | struct PartiallySignedTransaction { | ||||
/** | /** | ||||
* Merge psbt into this. The two psbts must have the same underlying | * Merge psbt into this. The two psbts must have the same underlying | ||||
* CTransaction (i.e. the same actual Bitcoin transaction.) Returns true if | * CTransaction (i.e. the same actual Bitcoin transaction.) Returns true if | ||||
* the merge succeeded, false otherwise. | * the merge succeeded, false otherwise. | ||||
*/ | */ | ||||
NODISCARD bool Merge(const PartiallySignedTransaction &psbt); | NODISCARD bool Merge(const PartiallySignedTransaction &psbt); | ||||
bool IsSane() const; | bool IsSane() const; | ||||
bool AddInput(const CTxIn &txin, PSBTInput &psbtin); | |||||
bool AddOutput(const CTxOut &txout, const PSBTOutput &psbtout); | |||||
PartiallySignedTransaction() {} | PartiallySignedTransaction() {} | ||||
PartiallySignedTransaction(const PartiallySignedTransaction &psbt_in) | PartiallySignedTransaction(const PartiallySignedTransaction &psbt_in) | ||||
: tx(psbt_in.tx), inputs(psbt_in.inputs), outputs(psbt_in.outputs), | : tx(psbt_in.tx), inputs(psbt_in.inputs), outputs(psbt_in.outputs), | ||||
unknown(psbt_in.unknown) {} | unknown(psbt_in.unknown) {} | ||||
explicit PartiallySignedTransaction(const CTransaction &txIn); | explicit PartiallySignedTransaction(const CTransaction &txIn); | ||||
PartiallySignedTransaction & | PartiallySignedTransaction & | ||||
operator=(const PartiallySignedTransaction &other) = default; | operator=(const PartiallySignedTransaction &other) = default; | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |