Error when importing miniscript wallet to Core

2 replies 321 views
mikehawkMember
Posts: 2 · Reputation: 73
#1Aug 28, 2023, 03:57 AM
Anyone here tried importing a miniscript wallet into Core 28.1.0? I'm hitting an error and could really use some help. Here's the 'importdescriptors' command I'm working with, but I've redacted the xpubs for privacy. I ran it through a json validator and it checks out okay. However, Core throws a "Key path value '<0;1>' is not a valid uint32" error. I dug into the Core code to see where this error comes from, and it seems to be related to how it parses the stuff in the angle brackets. I stepped through the code, but I can't figure out why it's failing with my input. By the time it throws that error, the string in quotes should just be '0' or '1', not the whole bracketed string. If anyone has any idea what's going wrong, I would really appreciate it! Just a quick note on the policy: it's 2-of-3 multisig OR (a single key AND after block 999999). importdescriptors "[{\"desc\": \"wsh(or_d(multi(2,[369a1776/48'/'0'/'0'/'2']xpub6DtZzm/<0;1>/*,[7de76f74/48'/'0'/'0'/'2']xpub6DjqDNkD7x/<0;1>/*,[d1545269/48'/'0'/'0'/'2']xpub6EDQL4ESvxWR/<0;1>/*),and_v(v:pk([6b642bb7/48'/'0'/'0'/'2']xpub6DoxsMYpT/<0;1>/*),after(999999))))#6zth9pvk\", \"range\":[0, 1000], \"timestamp\":\"now\", \"keypool\":true, \"active\":true, \"watchonly\":true}]"
6 Reply Quote Share
ryan_nodeSenior Member
Posts: 202 · Reputation: 852
#2Aug 28, 2023, 06:38 AM
Those type of descriptors (referred to as multipath descriptors) were not implemented until 29.0. 28.1 does not support multipath descriptors.
2 Reply Quote Share
mikehawkMember
Posts: 2 · Reputation: 73
#3Aug 28, 2023, 08:43 AM
Upgraded to 29.0 and imported successfully, thanks!
6 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics