Skip to content

[Bug] "Key path value '<0;1>' is not a valid uint32" - exported output descriptor is invalid and not recognized by Bitcoin Core #817

@GregTonoski

Description

@GregTonoski

Preconditions:

  1. Sparrow 1.7.1 portable, Windows 11.
  2. Testnet.

Steps:

  1. File -> Export Wallet -> Output Descriptor Export File -> Save.
  2. Copy content of the saved file to Clipboard.
  3. Open Bitcoin Core 24.0.1 (bitcoin-qt.exe -testnet) console.
  4. Run the command: importdescriptors '[{"desc": "wpkh([3f97f7d5/84h/1h/0h]tpubDCo3Gc8f31Hdz2cC8uUbHc1Hz96jpQaKWdkz4PE2ctFSKKQwG5MQ24Mm5nWDALMgRXrMgtStPfwNa4MvpDYXEmF2iWj4dyg1Z4j8gmSvyAr/<0;1>/*)#89q6exj7", "timestamp": "now"}]'

Actual result:

The descriptor is not accepted by Bitcoin Core:
[
{
"success": false,
"error": {
"code": -5,
"message": "wpkh(): Key path value '<0;1>' is not a valid uint32"
}
}
]

Expected result:

Sparrow creates an Output Descriptor that is accepted by Bitcoin Core and import is finished successfully.

Logs (TRACE level)

sparrow.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions