Skip to content

wally_psbt_input_get_outpoint implementation in bitcoin/psbt.h #6385

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ddustin opened this issue Jul 6, 2023 · 1 comment
Open

wally_psbt_input_get_outpoint implementation in bitcoin/psbt.h #6385

ddustin opened this issue Jul 6, 2023 · 1 comment

Comments

@ddustin
Copy link
Collaborator

ddustin commented Jul 6, 2023

wally_psbt_input_get_outpoint... but I've said that so many times I think we need a bitcoin/psbt.h:

struct wally_psbt_input *wally_psbt_get_input_spending(const struct wally_psbt *psbt, const struct bitcoin_outpoint *out, size_t *in_num)

where in_num is set if non-NULL (and return is non-NULL).

Originally posted by @rustyrussell in #6253 (comment)

@jgriffiths
Copy link
Contributor

Hi, you can implement this trivially as a wrapper over psbt_find_input_spending_utxo() in ElementsProject/libwally-core#403 once merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants