Error parsing combo descriptor

未关闭
#31 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
api, backend

调研方向

从回溯中显示的 Python Descriptor 构造函数开始,复现提供的 combo descriptor 代码片段。跟踪构造函数如何处理 descriptor 字符串,并确定是否支持 combo descriptor;当行为得到澄清且 issue 的 parsing 问题得到解决或记录后,即视为完成。

由索引模型根据 Issue 内容生成。

描述

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»'
主要语言
Python
星标
11
派生
12
平均合并
2 天 13 小时
30 天内合并 PR
2

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

bitcoindevkit/bdk-python 的其他 Issue

查看 bitcoindevkit/bdk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。