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

gui installer: append derivation path to xpubs #581

Conversation

edouardparis
Copy link
Member

@edouardparis edouardparis commented Jul 21, 2023

EDIT (by Antoine): this also fixes #337.

@darosior
Copy link
Member

Hmm the descriptor is trimmed when i need to back it up
image

@edouardparis edouardparis force-pushed the gui-installer-append-derivation-path-to-xpubs branch 2 times, most recently from ef6c486 to e381a7a Compare July 25, 2023 16:30
@darosior
Copy link
Member

Interesting:
image

I don't think it's a big deal nor that it should block this pull request, but i just ran into it. I think it was always possible though.

@darosior
Copy link
Member

darosior commented Jul 26, 2023

I found a bug in signing a recovery transaction. I shared a screencast in private. Here is the descriptor.

wsh(or_i(and_v(v:thresh(1,pkh([21223344/5678'/6578/56789/532/0/0/0/0/4'/0/0/0]tpubDFmS15ikmTmm9BmpXHxSNXWBoTbu3KLesTAK4Z7LgmspiwCeAg7xTxY16Trk2u1vkoh3MQBgkCvWCAHcXTu9cD1dLsuvH48hgBvDrNuc78x/5/<0;1>/*),a:pkh([4b7d818f/48'/1'/0'/2']tpubDFLCSKd8xuVVPKmTh9M1o9BycU9GywkiURzXigBmWnazCfV1oxMUBBbtqqaC9m2AkJ7V6gRQTS5Qhnj3ohEcsLssvuduPd1XTJNMYwGWNyz/4/<0;1>/*)),older(20)),or_d(multi(4,[21223344/5678'/6578/56789/532/0/0/0/0/4'/0/0/0]tpubDFmS15ikmTmm9BmpXHxSNXWBoTbu3KLesTAK4Z7LgmspiwCeAg7xTxY16Trk2u1vkoh3MQBgkCvWCAHcXTu9cD1dLsuvH48hgBvDrNuc78x/0/<0;1>/*,[21223344/5678'/6578/56789/532/0/0/0/0/4'/0/0/0]tpubDFmS15ikmTmm9BmpXHxSNXWBoTbu3KLesTAK4Z7LgmspiwCeAg7xTxY16Trk2u1vkoh3MQBgkCvWCAHcXTu9cD1dLsuvH48hgBvDrNuc78x/1/<0;1>/*,[21223344/5678'/6578/56789/532/0/0/0/0/4'/0/0/0]tpubDFmS15ikmTmm9BmpXHxSNXWBoTbu3KLesTAK4Z7LgmspiwCeAg7xTxY16Trk2u1vkoh3MQBgkCvWCAHcXTu9cD1dLsuvH48hgBvDrNuc78x/2/<0;1>/*,[4b7d818f/48'/1'/0'/2']tpubDFLCSKd8xuVVPKmTh9M1o9BycU9GywkiURzXigBmWnazCfV1oxMUBBbtqqaC9m2AkJ7V6gRQTS5Qhnj3ohEcsLssvuduPd1XTJNMYwGWNyz/0/<0;1>/*,[4b7d818f/48'/1'/0'/2']tpubDFLCSKd8xuVVPKmTh9M1o9BycU9GywkiURzXigBmWnazCfV1oxMUBBbtqqaC9m2AkJ7V6gRQTS5Qhnj3ohEcsLssvuduPd1XTJNMYwGWNyz/1/<0;1>/*),and_v(v:thresh(3,pkh([21223344/5678'/6578/56789/532/0/0/0/0/4'/0/0/0]tpubDFmS15ikmTmm9BmpXHxSNXWBoTbu3KLesTAK4Z7LgmspiwCeAg7xTxY16Trk2u1vkoh3MQBgkCvWCAHcXTu9cD1dLsuvH48hgBvDrNuc78x/3/<0;1>/*),a:pkh([21223344/5678'/6578/56789/532/0/0/0/0/4'/0/0/0]tpubDFmS15ikmTmm9BmpXHxSNXWBoTbu3KLesTAK4Z7LgmspiwCeAg7xTxY16Trk2u1vkoh3MQBgkCvWCAHcXTu9cD1dLsuvH48hgBvDrNuc78x/4/<0;1>/*),a:pkh([4b7d818f/48'/1'/0'/2']tpubDFLCSKd8xuVVPKmTh9M1o9BycU9GywkiURzXigBmWnazCfV1oxMUBBbtqqaC9m2AkJ7V6gRQTS5Qhnj3ohEcsLssvuduPd1XTJNMYwGWNyz/2/<0;1>/*),a:pkh([4b7d818f/48'/1'/0'/2']tpubDFLCSKd8xuVVPKmTh9M1o9BycU9GywkiURzXigBmWnazCfV1oxMUBBbtqqaC9m2AkJ7V6gRQTS5Qhnj3ohEcsLssvuduPd1XTJNMYwGWNyz/3/<0;1>/*)),older(10)))))#7j99257u

And here is the mnemonic

$ cat gui/aaaaa/regtest/mnemonics/mnemonic-4b7d818f.txt 
code egg jar argue melt burger fiber snack suspect digital orient cost

And here is the PSBT

cHNidP8BAKQCAAAAA9QfHIf5MwJSN5SJ/KYyRg4wzUv5SI9XsTwGHCOaID54AAAAAAAUAAAAio1QbHXUYpBmofF8uWMTcaPNA/4juYAsFNP8w90FFakBAAAAABQAAAA6wyG/C4b/B+I+GIredpEH67zhNuBWnJOiVZf7O6DDvgEAAAAAFAAAAAFM5YlrAAAAABYAFEq56sTPCTejek7gA3IsJ1cgoXIuAAAAAAABAPYCAAAAAAEBEnCmUGitXBs+JJtOIfh6sDRCTjMjj8H36OyF/vd2A7gAAAAAAP3///8CANJJawAAAAAiACB8UPsyXZQ/dvxDUPnW65pCS55H85T3KBXDYZsNPpTeflsmuSkAAAAAIlEgeOOwdCkeSQlOzfKgYJH5gRlexhfixY/Jx3jC9l0efiYCRzBEAiABN3P8tV1dWFPxaMsg3BLvznmBDyXvtjSdu3DKMZy0LQIgJkr86wbDW0o2z4lRNBU28q0+T41nU0hGgznjY0Bte7kBIQKmFpnqPJVSRc4BcpjYto/NNoS6Tq07ROW8k2AGOB3dADEBAAABASsA0klrAAAAACIAIHxQ+zJdlD92/ENQ+dbrmkJLnkfzlPcoFcNhmw0+lN5+IgICOJlXHfvjIhR1aEFg6Tlo/C5fw2Xo3ickglSpPhmnsN1HMEQCIEAvFf5EP5BKHxpzhnvXLlLfZp8vB2ahkFe9SFgghniTAiASwV4PiiZSUa2wfByoUJXyvJMquGvWi/qGM+3uQDgcXAEiAgJ9XSjJELu66NEgR/v3jHtkNiob7UCMYfSpbnvAitPTokcwRAIgYK+ci/S8FtvUWCqbp6dds/Dyfkb1Ewtp8vb2TsmHuiUCIBoWHvyCquqnzpI8827GWCd5UzEqg7UBvkVzqcTikJxuASICAqu4gdPRrAiVPIAamo6dumoCVghzRRo9I5sCOX6itW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AAAAAAAAAAAAACIGA4/0rph9yihQNEl8BR9ggyplBydSAuFH11+1HeURHAX/QCEiM0QuFgCAshkAANXdAAAUAgAAAAAAAAAAAAAAAAAAAAAAAAQAAIAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAiBgPN7Ky4E6g6xZxS0i+rFh27hMKKTPpnICE0KmZS7QZkMyBLfYGPMAAAgAEAAIAAAACAAgAAgAMAAAAAAAAAAAAAAAAA

@darosior
Copy link
Member

Opened #584 to fix my bug.

@edouardparis edouardparis marked this pull request as ready for review August 7, 2023 07:53
@edouardparis edouardparis force-pushed the gui-installer-append-derivation-path-to-xpubs branch 2 times, most recently from 41aebcf to a43a92d Compare August 10, 2023 09:53
@darosior
Copy link
Member

Merged #599, this can now be rebased.

@edouardparis edouardparis force-pushed the gui-installer-append-derivation-path-to-xpubs branch from faddc99 to d71be89 Compare August 11, 2023 15:29
@edouardparis edouardparis force-pushed the gui-installer-append-derivation-path-to-xpubs branch from d71be89 to 30ce2de Compare August 11, 2023 15:48
@darosior
Copy link
Member

I assume this is ready for testing?

@jp1ac4 jp1ac4 mentioned this pull request Aug 16, 2023
4 tasks
Copy link
Member

@darosior darosior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 30ce2de -- tested it locally and reviewed the descriptor analysis related changes. Edouard also tested it against a setup with a Specter device.

The policy registration on the Ledger is so much cleaner.

Just a few display quirks that i think we can workaround in the future. We could regroup the "number of signatures needed" per signing device in the future so that it doesn't show "4 signatures needed from X and Y". Or "0/4" when only 2 signing devices are used. Here is what i'm talking about:
image
image
image
image

self.edit_name = false;
} else {
self.edit_name = true;
self.form_name.value = String::new();
}
self.form_xpub.valid = true;
self.form_xpub.valid = check_key_network(&key, self.network);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this be fixing #337 by any chance?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes you are right !

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and i indeed can't import a testnet descriptor to mainnet anymore. Updating the OP before merging.

@darosior darosior merged commit b2baed5 into wizardsardine:master Aug 16, 2023
18 checks passed
@edouardparis edouardparis deleted the gui-installer-append-derivation-path-to-xpubs branch August 16, 2023 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

GUI: Installer: check the network of xpubs when importing descriptor
2 participants