Error parsing combo descriptor
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start at the Python Descriptor constructor shown in the traceback and reproduce the supplied combo descriptor snippet. Trace how the constructor handles the descriptor string and determine whether combo descriptors are supported; done means the behavior is clarified and the issue's parsing problem is addressed or documented.
Written by the indexing model from the issue text.
Description
When initialising a combo descriptor this error was raised:
bdkpython.bdk.DescriptorError.Miniscript: error_message='unexpected «combo(1 args) while parsing Miniscript»'
Is this a legitimate error with the descriptor?
Code
from bdkpython.bdk import Descriptor, Network
TEST_NETWORK = Network(1)
DESC = "combo(tpubD6NzVbkrYhZ4YSPGUiT67AZRVmJUjPn1Twt4JuYPrkGZiwVKyBofjVRej8A194X2X4Toyo22HSaJJYLH2g4gd2JGnztsKzShiRFwWgAYi5D/0h/0h/*h)#leqp7cnz"
my_desc = Descriptor(descriptor=DESC, network=TEST_NETWORK)
Traceback
Traceback (most recent call last):
File "/Users/s/projects/bdk_playground/check.py", line 9, in <module>
my_desc = Descriptor(descriptor=DESC, network=TEST_NETWORK)
File "/Users/s/projects/bdk_playground/env/lib/python3.10/site-packages/bdkpython/bdk.py", line 17768, in __init__
self._pointer = _uniffi_rust_call_with_error(_UniffiConverterTypeDescriptorError,_UniffiLib.uniffi_bdkffi_fn_constructor_descriptor_new,
File "/Users/s/projects/bdk_playground/env/lib/python3.10/site-packages/bdkpython/bdk.py", line 295, in _uniffi_rust_call_with_error
_uniffi_check_call_status(error_ffi_converter, call_status)
File "/Users/s/projects/bdk_playground/env/lib/python3.10/site-packages/bdkpython/bdk.py", line 306, in _uniffi_check_call_status
raise error_ffi_converter.lift(call_status.error_buf)
bdkpython.bdk.DescriptorError.Miniscript: error_message='unexpected «combo(1 args) while parsing Miniscript»'
- Dominant language
- Python
- Stars
- 11
- Forks
- 12
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bitcoindevkit/bdk-python
-
Difficulty 3/5 1-2 days Newbie friendliness 84/100
bitcoindevkit/bdk-python#51 · 1 comment ·
All issues in bitcoindevkit/bdk-python
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·