-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
VelocityHint removal #73
Comments
Well, the point is NOT to use VelocityClass for any sort of derivations AT ALL, but rather as a hint for how to do coinselection/coinallocation (aggregation of different state on UTXOs) by a wallet. The derivation path MUST always use 9 for non-tapret-tweaked outputs and 10 for tapret-tweaked |
Not sure I understand your message. In particular:
At the moment using change index
Can you please give a more detailed explanation? |
Hmm, now I am not sure I understand you. Let me try to rephrase my answer once again: The Now, about derivation indexes for RGB. We have decided to hold all assets of all classes under the same single derivation index - |
Seems like we already agree on how it's supposed to work. Where the difference seems to lie is in how a transfer currently works. To clarify what I mean, let me give some examples of what I get with rgb-sandbox if I use a derivation path with change index
Notes:
When it fails, I get the error:
Seems liike the issue is with the change output and that, using current versions of |
Yes, that's my point: we do agree and the merged change doesn't introduce anything against what we agreed upon 😀 Now, if I am getting you right, your point is that even though it did break something. I think if it is the case, the break is not caused by the change to |
I guess the break has been caused by the re-numbering of the velocity classes. If I'm correct, the bug was there already but was not visible in rgb-sandbox as it derived addresses with change index In The beneficiary output is skipped, which is why it doesn't trigger the same outcome. As I see it, the change output currently needs to have been derived with a change index corresponding to a Do you confirm my analysis? |
Shit, that's the part I have missed. Working on that. |
Now should be fixed with #77 |
Fix confirmed on updated sandbox (commit |
Commit
e6dbafe
refactors the velocity class concept but I recall from the 2023-04-27 dev call that we reasoned differently.Specifically, I recall we reasoned that:
0
or1
, which are also used by standard bitcoin wallets, leads to the risk of burning assetsSo, we decided to:
0
or1
9
as the only derivation index for RGB allocationsThe current situation instead:
0
forUnspecified
VelocityHint
10
/25
/50
/75
/100
for increasing velocitiesAlso, if I'm not mistaken, we said that wallets would still benefit from having a way to assign a velocity class to RGB allocations, to be used e.g. to decide how to aggregate multiple allocations to UTXOs, and that this could be done via the supplement (although I'm not sure about the details on this).
The text was updated successfully, but these errors were encountered: