Skip to content

Conversation

Sjors
Copy link
Member

@Sjors Sjors commented Jul 21, 2025

Another step towards #785.

Usage:

First register a policy with #791, #647, MooSig or some other method.

Construct a PSBT.

And then try to sign it.

hwi --device-type ledger signtx --policy-name "MooSig" --policy-desc "tr(musig(@0,@1)" --key [00000001/87'/0'/0']xpub... --key [00000002/87'/0'/0']xpub... --hmac 00... psbt...

{"psbt": "00......"}

It's easiest to test this with just a single sig wallet. Using #791 you can easily register it and get an hmac (even though registration isn't mandatory).

If you want to try with MuSig, you'll need either #784 or use a Bitcoin Core branch with PSBTv2 support (bitcoin/bitcoin#21283). I still need to test both these approaches.

Strongly overlaps with #647, but this implements signing independent of registration.

This was referenced Jul 21, 2025
@Sjors Sjors force-pushed the 2025/07/policy-sign branch 7 times, most recently from 31a9714 to dfd11e0 Compare July 30, 2025 19:02
@Sjors
Copy link
Member Author

Sjors commented Jul 31, 2025

Coldcard CI failure is probably spurious.

@Sjors Sjors force-pushed the 2025/07/policy-sign branch from dfd11e0 to b53160a Compare September 4, 2025 06:30
@Sjors
Copy link
Member Author

Sjors commented Sep 4, 2025

Rebased after #795 landed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant