Skip to content
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

Added support to handle custom async finalizers #1972

Closed

Conversation

summraznboi
Copy link

Currently you can only use synchronous custom finalizers when finalizing an input - it would be greatly useful to also support async finalizers as well. This PR is an attempt to implement that as simply as possible. Any feedback is greatly welcome :)

@summraznboi
Copy link
Author

Included in this PR are some quality of life updates to Typescript types, preferring to optional keys for finalScriptSig/finalScriptWitness so that users don't have to explicitly specify undefined for unused key.

@junderw
Copy link
Member

junderw commented Sep 2, 2023

I'd be interested to hear a concrete use case.

Signing is obvious, with HSMs and separate signing devices requiring user input.

Finalizing seems like it lacks the need for async IO with some outside service / device...

@summraznboi
Copy link
Author

Actually, I agree, will close out now.

@summraznboi summraznboi closed this Sep 2, 2023
@summraznboi summraznboi deleted the support-async-finalizers branch September 2, 2023 05:27
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

Successfully merging this pull request may close these issues.

2 participants