Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot register descriptor #271

Open
pythcoiner opened this issue Dec 10, 2023 · 3 comments
Open

Cannot register descriptor #271

pythcoiner opened this issue Dec 10, 2023 · 3 comments
Labels
bug Something isn't working
Milestone

Comments

@pythcoiner
Copy link
Contributor

While i try to register this descriptor

wsh(or_i(and_v(v:thresh(1,pkh([5eb6aff1/48'/1'/0'/2']tpubDEmCTbWN3ZHypBRHCvdHhm4hEJbCZ6EhgT8Krfemmvmo3AqZee3dk9GgVYH9bmsyptreUwUXob4JARKXhdnYJqkJdut7CsAC8npuTRncVi3/<4;5>/*),a:pkh([94ed3672/48'/1'/0'/2']tpubDE1HLabeQUBLMogm7FD2zhh2Y9rkhM8sHhBE2HGdc9jB5yodsrezgsqdwZMKWaTSPmxBEQ2NrAAU1kTX254rzKnZM5xvPee6DP1mTjjtR7A/<4;5>/*)),older(65535)),or_i(and_v(v:thresh(2,pkh([5eb6aff1/48'/1'/0'/2']tpubDEmCTbWN3ZHypBRHCvdHhm4hEJbCZ6EhgT8Krfemmvmo3AqZee3dk9GgVYH9bmsyptreUwUXob4JARKXhdnYJqkJdut7CsAC8npuTRncVi3/<2;3>/*),a:pkh([94ed3672/48'/1'/0'/2']tpubDE1HLabeQUBLMogm7FD2zhh2Y9rkhM8sHhBE2HGdc9jB5yodsrezgsqdwZMKWaTSPmxBEQ2NrAAU1kTX254rzKnZM5xvPee6DP1mTjjtR7A/<2;3>/*)),older(55000)),or_i(and_v(v:thresh(1,pkh([6abb52a9/48'/1'/0'/2']tpubDFZTCVU1Sa9nJXCxx97UFvGausHQPFjJyaiDbdr8GNqjCLKwYc8ihegK7yJdcizs9HMbiGA7ke1HiCENVHaERvNANHW7U2Wo2qnRsuqB52r/<4;5>/*),a:pkh([d4ab66f1/48'/1'/0'/2']tpubDEXYN145WM4rVKtcWpySBYiVQ229pmrnyAGJT14BBh2QJr7ABJswchDicZfFaauLyXhDad1nCoCZQEwAW87JPotP93ykC9WJvoASnBjYBxW/<4;5>/*)),older(45000)),or_d(multi(2,[6abb52a9/48'/1'/0'/2']tpubDFZTCVU1Sa9nJXCxx97UFvGausHQPFjJyaiDbdr8GNqjCLKwYc8ihegK7yJdcizs9HMbiGA7ke1HiCENVHaERvNANHW7U2Wo2qnRsuqB52r/<0;1>/*,[d4ab66f1/48'/1'/0'/2']tpubDEXYN145WM4rVKtcWpySBYiVQ229pmrnyAGJT14BBh2QJr7ABJswchDicZfFaauLyXhDad1nCoCZQEwAW87JPotP93ykC9WJvoASnBjYBxW/<0;1>/*),and_v(v:thresh(3,pkh([6abb52a9/48'/1'/0'/2']tpubDFZTCVU1Sa9nJXCxx97UFvGausHQPFjJyaiDbdr8GNqjCLKwYc8ihegK7yJdcizs9HMbiGA7ke1HiCENVHaERvNANHW7U2Wo2qnRsuqB52r/<2;3>/*),a:pkh([d4ab66f1/48'/1'/0'/2']tpubDEXYN145WM4rVKtcWpySBYiVQ229pmrnyAGJT14BBh2QJr7ABJswchDicZfFaauLyXhDad1nCoCZQEwAW87JPotP93ykC9WJvoASnBjYBxW/<2;3>/*),a:pkh([5eb6aff1/48'/1'/0'/2']tpubDEmCTbWN3ZHypBRHCvdHhm4hEJbCZ6EhgT8Krfemmvmo3AqZee3dk9GgVYH9bmsyptreUwUXob4JARKXhdnYJqkJdut7CsAC8npuTRncVi3/<0;1>/*),a:pkh([94ed3672/48'/1'/0'/2']tpubDE1HLabeQUBLMogm7FD2zhh2Y9rkhM8sHhBE2HGdc9jB5yodsrezgsqdwZMKWaTSPmxBEQ2NrAAU1kTX254rzKnZM5xvPee6DP1mTjjtR7A/<0;1>/*)),older(35000)))))))#5h3txqua

using Liana wallet via usb, i got hint ' Processing host data, please wait until the process is complete...' then nothing, no 'wallet' added on specter side and liana get info as registration success.

@stepansnigirev stepansnigirev added this to the Release 1.9.0 milestone Dec 10, 2023
@stepansnigirev stepansnigirev added the bug Something isn't working label Dec 10, 2023
@stepansnigirev
Copy link
Collaborator

stepansnigirev commented Dec 10, 2023

Pretty large descriptor :) Can you try loading the wallet from SD card, does that work?

To import wallet from SD card you need to create a text file with content addwallet <wallet_name>&<wallet_descriptor> and open it from the device.

This can be either an issue with USB, or with memory allocation. I'll investigate.

@seedor-io
Copy link

I'm facing a similar issue. I am trying to register a large decaying multisig (Liana) with my Specter Shield running 1.90.
Smaller Descriptors were no problem but this one is a 3 of 5 decaying to 2 of 5 decaying to 1 of 5 and when I load it via SD card I get the following error.

IMG_20241114_095919015

Ending on MemoryError: memory allocation failed allocating 2368 bytes

Here I anonymized the xpubs. The text file looked like this because the standard addwallet <wallet_name>&<wallet_descriptor> command didn’t work for me, but this format always did:

{"descriptor": "tr(xpub_/<0;1>/*,{{and_v(v:multi_a(2,[f68f701d/48'/0'/1'/2']xpub_2/<2;3>/*,[f4c7191f/48'/0'/0'/2']xpub_3/<2;3>/*,[7a9b94bf/48'/0'/0'/2']xpub_4/<2;3>/*,[b826e13b/48'/0'/0'/2']xpub_5/<2;3>/*,[7986d2f7/48'/0'/0'/2']xpub_1/<2;3>/*),older(52600)),and_v(v:multi_a(1,[f68f701d/48'/0'/1'/2']xpub_2/<4;5>/*,[f4c7191f/48'/0'/0'/2']xpub_3/<4;5>/*,[7a9b94bf/48'/0'/0'/2']xpub_4/<4;5>/*,[b826e13b/48'/0'/0'/2']xpub_5/<4;5>/*,[7986d2f7/48'/0'/0'/2']xpub_1/<4;5>/*),older(65535))},multi_a(3,[f68f701d/48'/0'/1'/2']xpub_2/<0;1>/*,[f4c7191f/48'/0'/0'/2']xpub_3/<0;1>/*,[7a9b94bf/48'/0'/0'/2']xpub_4/<0;1>/*,[b826e13b/48'/0'/0'/2']xpub_5/<0;1>/*,[7986d2f7/48'/0'/0'/2']xpub_1/<0;1>/*)})#4l4aafpg", "label": "Liana_Chungus"}

Registering this descriptor on Coldcard Mark4, Q and BitBox02 worked.

@pythcoiner
Copy link
Contributor Author

if it's a problem about the memory, one quick fix could be to allow import wallet policies (BIP388), as keys are not repeated there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants