| 1137 | } |
| 1138 | |
| 1139 | static size_t psbt_output_scriptlen(const struct wally_psbt *psbt, size_t index) |
| 1140 | { |
| 1141 | if (psbt->version == WALLY_PSBT_VERSION_0) |
| 1142 | return psbt->tx->outputs[index].script_len; |
| 1143 | return psbt->outputs[index].script_len; |
| 1144 | } |
| 1145 | |
| 1146 | static const u8 *psbt_output_script(const struct wally_psbt *psbt, size_t index) |
| 1147 | { |