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

Support spending mixed opret/tapret outputs #252

Merged
merged 5 commits into from
Aug 13, 2024
Merged

Support spending mixed opret/tapret outputs #252

merged 5 commits into from
Aug 13, 2024

Conversation

dr-orlovsky
Copy link
Member

Closes #246

If PSBT inputs contain single-use seals of different types (opret and taproot) spent by the same wallet, we need to create two state transitions - one for tapret and one for opret. The main state transition is the one which matches the type of the wallet descriptor; the other state transition will just transform invalid seal type into correct one allocated to the change output. We also have to construct blank transitions of both types, as needed.

If PSBT is multi-party with wallets of different seal types, this situation doesn't happen since each wallet works and updates PSBT independently and their state transitions does not cross.

@dr-orlovsky dr-orlovsky added the bug Something isn't working label Aug 9, 2024
@dr-orlovsky dr-orlovsky added this to the v0.11.0 milestone Aug 9, 2024
@dr-orlovsky dr-orlovsky self-assigned this Aug 9, 2024
@dr-orlovsky dr-orlovsky merged commit e3847bf into master Aug 13, 2024
17 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

fail spending opret and tapret allocations together
1 participant