-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix Taptree Strict Encode/Decode #95
Conversation
Can you please provide the context in which you tried to serialize PSBT file? I mean was it a part of a wallet functionality, or something RGB-specific? I think it was my mistake to start using I am also happy to merge this PR, but I assume that is a breaking change, requiring major version bump. So please provide where exactly you are using this and depending on that we will decide on the best strategy to fix the issue. |
I found this bug when I made regression tests in tapret feature. When I tried to send a PSBT file with taptree in Without this fix, any PSBT file with taptree fails.
WOW, I will check the proposal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 3fc665b
Thank you for the explanation, now I got it. I think we can release that before 0.9 as a bugfix, since the previous version of the code didn't work anyway. |
Can you pls also do a PR against 0.8 branch such that we can do a bugfix release? |
Sorry, do you refer the rgb-node repo? |
No, I refer to this repo, it has |
Description
I tried to use
strict_decode
in the PSBT file with output taptree and the method returnsError::DataIntegrityError
.This error occurs because the Taptree decode expected a different format. To simplify the process, I changed to use serialize and deserialize taptree provided by
rust-bitcoin
lib.