spec: update to latest dual-funding wire changes

the witnesses are maddeningly weird now (you concat everything together)

we also changed some things to be s64's (it's a teeny tiny change)
This commit is contained in:
niftynei
2023-06-29 15:03:50 -05:00
committed by Rusty Russell
parent 388f27edce
commit 0cd7fe5089
6 changed files with 177 additions and 79 deletions

View File

@@ -7,7 +7,7 @@
struct wally_psbt;
struct wally_psbt_input;
struct witness_element;
struct witness;
/* psbt_finalize_input - Finalize an input with a given witness stack
*
@@ -15,21 +15,22 @@ struct witness_element;
* the redeem_script, if any.
* @ctx - the context to allocate onto
* @in - input to set final_witness for
* @witness_element - elements to add to witness stack
* @witness - witness data to add to witness stack
*/
void psbt_finalize_input(const tal_t *ctx,
struct wally_psbt_input *in,
const struct witness_element **elements);
/* psbt_to_witness_stacks - Take all sigs on a PSBT and copy to a
* witness_stack
const struct witness *witness);
/* psbt_to_witness_stacks - Take a side's sigs from a PSBT and copy to a
* wire witness
*
* @ctx - allocation context
* @psbt - PSBT to copy sigs from
* @opener - which side initiated this tx
* @side_to_stack - which side to stack witnesses of
*/
const struct witness_stack **
psbt_to_witness_stacks(const tal_t *ctx,
const struct wally_psbt *psbt,
enum tx_role side_to_stack);
const struct witness **
psbt_to_witnesses(const tal_t *ctx,
const struct wally_psbt *psbt,
enum tx_role side_to_stack);
#endif /* LIGHTNING_COMMON_PSBT_INTERNAL_H */