| 798 | } |
| 799 | |
| 800 | bool DecodeBase64PSBT(PartiallySignedTransaction& psbt, const std::string& base64_tx, std::string& error) |
| 801 | { |
| 802 | bool invalid; |
| 803 | std::string tx_data = DecodeBase64(base64_tx, &invalid); |
| 804 | if (invalid) { |
| 805 | error = "invalid base64"; |
| 806 | return false; |
| 807 | } |
| 808 | return DecodeRawPSBT(psbt, tx_data, error); |
| 809 | } |
| 810 | |
| 811 | bool DecodeRawPSBT(PartiallySignedTransaction& psbt, const std::string& tx_data, std::string& error) |
| 812 | { |