• 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

SBI, Kyobo Complete Japan-Korea Stablecoin Test With No Dollar Leg – Bitcoin News

SBI, Kyobo Complete Japan-Korea Stablecoin Test With No Dollar Leg – Bitcoin News

September 18, 2026
Solana’s 250ms Clock Shrinks Validator Control Windows

Solana’s 250ms Clock Shrinks Validator Control Windows

September 18, 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

SBI, Kyobo Complete Japan-Korea Stablecoin Test With No Dollar Leg – Bitcoin News

SBI, Kyobo Complete Japan-Korea Stablecoin Test With No Dollar Leg – Bitcoin News

by Moussa
September 18, 2026
0

Key TakeawaysThe test moved value from Japan to South Korea without using dollars.Canton processed the exchange and settlement in a...

Solana’s 250ms Clock Shrinks Validator Control Windows

Solana’s 250ms Clock Shrinks Validator Control Windows

by Moussa
September 18, 2026
0

Following today’s Solana news, the network cut its target slot time from 300 milliseconds to 250 milliseconds on Friday, according...

XRP Open Interest Is Back Above Pre-CLARITY Levels

XRP Open Interest Is Back Above Pre-CLARITY Levels

by Moussa
September 18, 2026
0

Key TakeawaysBinance XRP open interest climbed from a 285.2 million low on Sept. 17 to 307.7 million a day later.About...

Lagarde Blocked Binance’s EU License and Left It Locked Out

Lagarde Blocked Binance’s EU License and Left It Locked Out

by Moussa
September 18, 2026
0

Key TakeawaysThe WSJ reported Sept. 18 that Lagarde urged Greek PM Mitsotakis to reject Binance’s license bid.Around 2 million French...

CFTC Clears Passive Crypto Trading Software From Broker Rule

CFTC Clears Passive Crypto Trading Software From Broker Rule

by Moussa
September 18, 2026
0

Join Our Telegram channel to stay up to date on breaking news coverage CFTC staff said on September 17 that...

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

© 2024 APPROX FOUNDATION - The Crypto Currency News