[develop] Descriptor validation for miniscript#75
[develop] Descriptor validation for miniscript#75odudex merged 4 commits intodiybitcoinhardware:developfrom
Conversation
0a8ef6c to
ed9c205
Compare
ed9c205 to
f5df860
Compare
|
I think to better reflect real cases, test descriptors shouldn't have repeated keys. When they do, they should have increasing branches <2;3>, <4;5> ... |
|
I only adapted the tests that already existed. I don't want to alter those, so I will create new test cases to contemplate this, ok? |
|
Yes, if possible, please leave previous tests untouched, their keys and order; only change their outcomes if this was a result of the code changes. To test new scenarios, please add new descriptors, trying to reproduce usual exports of real coordinators. |
|
Done. Plz note that this branch fixes pre-existing validation only. There are unimplemented things in Please, fell free to submit a PR to my branch if you want any other change and I will merge right away. |
|
I still see descriptors with repeated keys in tests (while I don't see in #76). |
|
I'll revert the old tests, only updating the outcome check since validation now disallows miniscripts with different Will update TODO to note the tests don't check These descriptors are mostly edge cases to test validation, but real-world examples are included too. |
|
Thank you! |
Descriptor validation for miniscript branches was not working properly