-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Inability to hold multiple tapret tweaks in Tr RGB wallet for the same derivation #183
Comments
@crisdut could you please tell me on which branch you've found this issue? |
If I understood correctly what you did is:
Is this correct?
Why so? Please provide more information |
Hi @zoedberg, sorry for the delay.
So so, the first and second steps are correct. But the last step is a little different.
OK! I think it is not related to a particular schema, but fungible/fractional assets are easier to reproduce because you use the asset change to make the next transfer.
OK!
Here, if you use
Because you can use the rgb-rt lib directly, you can modify the TxParams, as mentioned above. I hope this help |
Yes, basically if you derive for a key which already has an associated at-tweak it will always derive it in a tweaked way. It is also the fact that currently we can only handle only single at-tweak per key... Both things should be changed, but it would require some deep refactoring of the whole descriptor and derivation APIs starting from |
I believe it is better to leave this as is for v0.11 to prevent people from creating more than one tweak per key and losing their funds. With v0.12 we will refactor the api and allow re-use of key derivation paths |
Description
I discovered a strange behavior when we tried to use
TapretKey::derive
after making a successfultapret1st
. If I retry using the same terminal change of the previous transaction, the pay operation returnsTapretKeyError::TapTreeNonEmpty
:This occurs because when creating the PSBT, we use the
TapretKey::derive
inside of thePsbt::construct_change
method (see here), and derivation uses the tap tweak to build a taptree.In version 0.10, we could derive without tap-tweak; I believe we need to implement something similar.
The text was updated successfully, but these errors were encountered: