• About
  • FAQ
  • Earn Bitcoin while Surfing the net
  • Buy & Sell Crypto on Paxful
Newsletter
Approx Foundation
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
Approx Foundation
No Result
View All Result
Home Bitcoin

How to Sign a Musig with Bitcoin Core

Moussa by Moussa
August 28, 2026
in Bitcoin
0
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


I created a musig descriptor with Bitcoin Core:

Related articles

Russia’s Moscow Exchange Pilots Crypto Trading for December Launch

Russia’s Moscow Exchange Pilots Crypto Trading for December Launch

October 11, 2026
Bitcoin Price Eyes $85K, but Momentum Has Yet to Show Up

Bitcoin Price Eyes $85K, but Momentum Has Yet to Show Up

October 11, 2026

My addresses:

tpubDCWbaTx1wFG3JHpT5sK7HD2yBDLdoonfz7SN5Jnk3UGXf3EAMNECcDrGQQXP6jccdgcczRnSDTBAXauK19EAbf3KvnHmRCsKk2gGdWP3Xke
tpubDCis6zc7jL21KnV9Rz7zRz2AsFartHsdQx9uVdnd2kVuNpCNX5mhHaMwYrR7YvdT3GKqKVKNDRSz966Z9DjXqUvyz7gHkfh751GBJ68CYab

The keys were master keys from other wallets.

Here was my descriptor:

tr(musig(tpubDCWbaTx1wFG3JHpT5sK7HD2yBDLdoonfz7SN5Jnk3UGXf3EAMNECcDrGQQXP6jccdgcczRnSDTBAXauK19EAbf3KvnHmRCsKk2gGdWP3Xke,tpubDCis6zc7jL21KnV9Rz7zRz2AsFartHsdQx9uVdnd2kVuNpCNX5mhHaMwYrR7YvdT3GKqKVKNDRSz966Z9DjXqUvyz7gHkfh751GBJ68CYab)/<0;1>/*)

No problem with importing or deriving addresses:

$ bitcoin-cli -rpcwallet=musig importdescriptors '''[{ "desc": "'$DESC_WITH_CS'", "timestamp": "now" }]'''

[
  {
    "success": true,
    "warnings": [
      "Range not given, using default keypool range"
    ]
  }
]

$ bitcoin-cli deriveaddresses $DESC_WITH_CS 0
[
  [
    "tb1p8ec2pt8z0djun9q93ld6zex5ep4surrqhqa5za455mw53qdruw6srfsshm"
  ],
  [
    "tb1p3k5h98dr8a7qnzt94sc0mxrkpkdmzuzfp6vgavk62mz63x8nhxyq3ns6ue"
  ]
]

But after I sent funds to address I haven’t had any success spending it.

When I tried to create a PSBT, I could walletprocesspsbt with results from my watch-only wallet with the descriptor, but the wallets with the master private keys did nothing.

When I tried to create a raw transaction and tried to sign with the keys, I got "signrawtransactionwithkey". When I instead tried to sign with the wallet, I got "error": "Witness program was passed an empty witness".

$ echo $rawtxhex
0200000001b08b225fa135d9a8826339ac2fa37ef51a61acbbf9b8933ebc98a4b4e15753230000000000fdffffff015099070000000000225120aac35fe91f20d48816b3c83011d117efa35acd2414d36c1e02b0f29fc3106d9000000000

$ bitcoin-cli signrawtransactionwithkey $rawtxhex "[\"tprv8ZgxMBicQKsPeSdLpZFD8rq5tsayj5PbX4Uo9Lm5PkebmzNXnR5aYTixCSJ4AYgPAPrvDHx7K6B3WdoxigCWKnBeR6DSxXzqpCPHQx2EZx9/0/0\", \"tprv8ZgxMBicQKsPdeCH2GoLphFYHXxr1YzG7Fxpc83SAhJukmLD7V73qqRUEN3b4gCrhc4ZaQJjQMXFtpQvc2r7W38FNxLfswiWK3xco12aMPK/0/0\"]"
error code: -5
error message:
Invalid private key

$ bitcoin-cli -rpcwallet=mainwallet signrawtransactionwithwallet $rawtxhex
{
  "hex": "0200000001b08b225fa135d9a8826339ac2fa37ef51a61acbbf9b8933ebc98a4b4e15753230000000000fdffffff015099070000000000225120aac35fe91f20d48816b3c83011d117efa35acd2414d36c1e02b0f29fc3106d9000000000",
  "complete": false,
  "errors": [
    {
      "txid": "235357e1b4a498bc3e93b8f9bbac611af57ea32fac396382a8d935a15f228bb0",
      "vout": 0,
      "witness": [
      ],
      "scriptSig": "",
      "sequence": 4294967293,
      "error": "Witness program was passed an empty witness"
    }
  ]
}

What’s the best practice for doing this? (PSBT or raw transaction?)

And what am I doing wrong?

Thanks!



Source link

Share76Tweet47

Related Posts

Russia’s Moscow Exchange Pilots Crypto Trading for December Launch

Russia’s Moscow Exchange Pilots Crypto Trading for December Launch

by Moussa
October 11, 2026
0

Key TakeawaysRussia’s Moscow Exchange plans to launch regulated cryptocurrency trading services on December 1.Unqualified investors will face tight investment caps...

Bitcoin Price Eyes $85K, but Momentum Has Yet to Show Up

Bitcoin Price Eyes $85K, but Momentum Has Yet to Show Up

by Moussa
October 11, 2026
0

Key TakeawaysBitcoin’s price trades near $83,770, with resistance between $83,900 and $84,200 limiting its latest recovery.Bitcoin’s RSI sits at 52,...

Strangely Rational — Week in Review

Strangely Rational — Week in Review

by Moussa
October 11, 2026
0

Bitcoin is finally showing signs of fatigue after its multi-month ascent from the $60k level to nearly $88k. As of...

Saylor Hints at Growing Strategy’s 848K Bitcoin Stash

Saylor Hints at Growing Strategy’s 848K Bitcoin Stash

by Moussa
October 11, 2026
0

Key TakeawaysSaylor’s Oct. 11 message hints at another Strategy bitcoin purchase.His chart displays 848,000 BTC valued at $70.48 billion.The graphic...

Coldcard X Account Hit by Phishing Scam After $100M Fiasco

Coldcard X Account Hit by Phishing Scam After $100M Fiasco

by Moussa
October 11, 2026
0

Key TakeawaysColdcard’s official X account published a phishing link on Oct. 11, prompting an investigation.Despite the fraudulent post, Coldcard says...

Load More

youssufi.com

sephina.com

[vc_row full_width="stretch_row" parallax="content-moving" vc_row_background="" background_repeat="no-repeat" background_position="center center" footer_scheme="dark" css=".vc_custom_1517813231908{padding-top: 60px !important;padding-bottom: 30px !important;background-color: #191818 !important;background-position: center;background-repeat: no-repeat !important;background-size: cover !important;}" footer_widget_title_color="#fcbf46" footer_button_bg="#fcb11e"][vc_column width="1/4"]

We bring you the latest in Crypto News

[/vc_column][vc_column width="1/4"][vc_wp_categories]
[/vc_column][vc_column width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2xhc3MlM0QlMjJ0bnAtZmllbGQlMjB0bnAtcHJpdmFjeS1maWVsZCUyMiUzRSUzQ2xhYmVsJTNFJTNDaW5wdXQlMjB0eXBlJTNEJTIyY2hlY2tib3glMjIlMjBuYW1lJTNEJTIybnklMjIlMjByZXF1aXJlZCUyMGNsYXNzJTNEJTIydG5wLXByaXZhY3klMjIlM0UlQzIlQTBCeSUyMGNvbnRpbnVpbmclMkMlMjB5b3UlMjBhY2NlcHQlMjB0aGUlMjBwcml2YWN5JTIwcG9saWN5JTNDJTJGbGFiZWwlM0UlM0MlMkZkaXYlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1idXR0b24lMjIlM0UlM0NpbnB1dCUyMGNsYXNzJTNEJTIydG5wLXN1Ym1pdCUyMiUyMHR5cGUlM0QlMjJzdWJtaXQlMjIlMjB2YWx1ZSUzRCUyMlN1YnNjcmliZSUyMiUyMCUzRSUwQSUzQyUyRmRpdiUzRSUwQSUzQyUyRmZvcm0lM0UlMEElM0MlMkZkaXYlM0UlM0NiciUyRiUzRSUzQyUyRnAlM0U=[/vc_raw_html][/vc_column][/vc_row]
No Result
View All Result
  • Contact Us
  • Homepages
  • Business
  • Guide

© 2024 APPROX FOUNDATION - The Crypto Currency News