The Cryptonomics™
  • Home
  • Blockchain
  • Bitcoin
  • Ethereum
  • NFTS
  • Altcoin
  • Mining
  • Consulting
Reading: multi signature – Signing a Bech32 Multisig with Bitcoin Core
Share
Please enter CoinGecko Free Api Key to get this plugin works.
The Cryptonomics™The Cryptonomics™
Font ResizerAa
Search
  • Home
  • Blockchain
  • Bitcoin
  • Ethereum
  • NFTS
  • Altcoin
  • Mining
  • Consulting
Follow US
  • About Us
  • Advertising Solutions
  • Privacy
  • Terms
  • Advertise
Copyright © MetaMedia™ Capital Inc, All right reserved
The Cryptonomics™ > Bitcoin > multi signature – Signing a Bech32 Multisig with Bitcoin Core
Bitcoin

multi signature – Signing a Bech32 Multisig with Bitcoin Core

admin
Last updated: April 3, 2026 8:44 am
admin Published April 3, 2026
Share
multi signature – Signing a Bech32 Multisig with Bitcoin Core


I’ve created a multisig deal with with Bitcoin Core:

$ bitcoin-cli -named createmultisig nrequired=2 keys=""'["'$pubkey1'","'$pubkey2'"]''' address_type=bech32
{
  "deal with": "tb1q8cg6qwhhv58zp005w6qnpfx8g6606awkjmf5yzlkulg0sc9phx8sqkltdd",
  "redeemScript": "5221039395fa19d6512f03043210cd3e9a03a850f7a8d986c8f35d30f2efc281a8d3312103c57ed70775d7a616778514e738fef0946b4be4ee32440b19f65ddd6e345983c052ae",
  "descriptor": "wsh(multi(2,039395fa19d6512f03043210cd3e9a03a850f7a8d986c8f35d30f2efc281a8d331,03c57ed70775d7a616778514e738fef0946b4be4ee32440b19f65ddd6e345983c0))#k626xmlq"
}

I then created a watch-only deal with to make it simple to entry transactions despatched to the deal with:

$ bitcoin-cli -rpcwallet="watchmulti" listunspent
[
  {
    "txid": "eb41b6d829e83d32ae8e3bd80ece0330db959a90a2c2a3d7f9bf7a177836133e",
    "vout": 1,
    "address": "tb1q8cg6qwhhv58zp005w6qnpfx8g6606awkjmf5yzlkulg0sc9phx8sqkltdd",
    "label": "",
    "witnessScript": "5221039395fa19d6512f03043210cd3e9a03a850f7a8d986c8f35d30f2efc281a8d3312103c57ed70775d7a616778514e738fef0946b4be4ee32440b19f65ddd6e345983c052ae",
    "scriptPubKey": "00203e11a03af7650e20bdf4768130a4c746b4fd75d696d3420bf6e7d0f860a1b98f",
    "amount": 0.00200000,
    "confirmations": 23,
    "spendable": true,
    "solvable": true,
    "desc": "wsh(multi(2,[38101947]039395fa19d6512f03043210cd3e9a03a850f7a8d986c8f35d30f2efc281a8d331,[0394feb3]03c57ed70775d7a616778514e738fef0946b4be4ee32440b19f65ddd6e345983c0))#n5s3dxtx",
    "parent_descs": [
      "wsh(multi(2,039395fa19d6512f03043210cd3e9a03a850f7a8d986c8f35d30f2efc281a8d331,03c57ed70775d7a616778514e738fef0946b4be4ee32440b19f65ddd6e345983c0))#k626xmlq"
    ],
    "protected": true
  }
]

I then created a transaction to spend among the cash:

utxo_txid=$(bitcoin-cli -rpcwallet="watchmulti" listunspent | jq -r '.[0] | .txid') 
utxo_vout=$(bitcoin-cli -rpcwallet="watchmulti" listunspent | jq -r '.[0] | .vout')
utxo_pubkey=$(bitcoin-cli -rpcwallet="watchmulti" listunspent | jq -r '.[0] | .scriptPubKey')

redeem_script="5221039395fa19d6512f03043210cd3e9a03a850f7a8d986c8f35d30f2efc281a8d3312103c57ed70775d7a616778514e738fef0946b4be4ee32440b19f65ddd6e345983c052ae"

$ rawtxhex=$(bitcoin-cli -named createrawtransaction inputs=""'[ { "txid": "'$utxo_txid'", "vout": '$utxo_vout' } ]''' outputs=""'{ "'$recipient'": 0.01, "'$change'": 0.0099  }''')

$ bitcoin-cli decoderawtransaction $rawtxhex
{
  "txid": "2f07d92f7e13c13ced08ebaf63881fb804d05e5413d0013dbb559dc0805ee8f0",
  "hash": "2f07d92f7e13c13ced08ebaf63881fb804d05e5413d0013dbb559dc0805ee8f0",
  "model": 2,
  "dimension": 125,
  "vsize": 125,
  "weight": 500,
  "locktime": 0,
  "vin": [
    {
      "txid": "eb41b6d829e83d32ae8e3bd80ece0330db959a90a2c2a3d7f9bf7a177836133e",
      "vout": 1,
      "scriptSig": {
        "asm": "",
        "hex": ""
      },
      "sequence": 4294967293
    }
  ],
  "vout": [
    {
      "value": 0.01000000,
      "n": 0,
      "scriptPubKey": {
        "asm": "0 933439cf21eeff085ad1cc9ceb506810fd823779",
        "desc": "addr(tb1qjv6rnnepamlsskk3ejwwk5rgzr7cydmeyaktds)#md8rtul5",
        "hex": "0014933439cf21eeff085ad1cc9ceb506810fd823779",
        "address": "tb1qjv6rnnepamlsskk3ejwwk5rgzr7cydmeyaktds",
        "type": "witness_v0_keyhash"
      }
    },
    {
      "value": 0.00990000,
      "n": 1,
      "scriptPubKey": {
        "asm": "0 3e11a03af7650e20bdf4768130a4c746b4fd75d696d3420bf6e7d0f860a1b98f",
        "desc": "addr(tb1q8cg6qwhhv58zp005w6qnpfx8g6606awkjmf5yzlkulg0sc9phx8sqkltdd)#vjkdfwda",
        "hex": "00203e11a03af7650e20bdf4768130a4c746b4fd75d696d3420bf6e7d0f860a1b98f",
        "address": "tb1q8cg6qwhhv58zp005w6qnpfx8g6606awkjmf5yzlkulg0sc9phx8sqkltdd",
        "type": "witness_v0_scripthash"
      }
    }
  ]
}

However when I attempt to signal with a pockets holding one of many non-public keys, I get “Witness program was handed an empty witness”

$ bitcoin-cli -rpcwallet="" -named signrawtransactionwithwallet hexstring=$rawtxhex prevtxs=""'[ { "txid": "'$utxo_txid'", "vout": '$utxo_vout', "scriptPubKey": "'$utxo_pubkey'", "redeemScript": "5221039395fa19d6512f03043210cd3e9a03a850f7a8d986c8f35d30f2efc281a8d3312103c57ed70775d7a616778514e738fef0946b4be4ee32440b19f65ddd6e345983c052ae", "amount": 0.02 } ]'''
{
  "hex": "02000000013e133678177abff9d7a3c2a2909a95db3003ce0ed83b8eae323de829d8b641eb0100000000fdffffff0240420f0000000000160014933439cf21eeff085ad1cc9ceb506810fd823779301b0f00000000002200203e11a03af7650e20bdf4768130a4c746b4fd75d696d3420bf6e7d0f860a1b98f00000000",
  "full": false,
  "errors": [
    {
      "txid": "eb41b6d829e83d32ae8e3bd80ece0330db959a90a2c2a3d7f9bf7a177836133e",
      "vout": 1,
      "witness": [
      ],
      "scriptSig": "",
      "sequence": 4294967293,
      "error": "Witness program was handed an empty witness"
    }
  ]
}

Any concepts what I am lacking right here.

(Clearly, PSBTs are the freshest manner to do that, however I wish to show one of many basic bitcoin-cli strategies earlier than going there, and since I am unable to dump non-public keys any extra, this looks like the one choice.)



Supply hyperlink

You Might Also Like

Apple, Meta, SpaceX and Coinbase Be part of DOJ Operation, Shutting Down 1.4 Million Rip-off Accounts

The selloff In Bitcoin, Altcoins Deepened, Will Bulls Purchase The Dip?

Asserting HYPE staking and Auto Earn, a easy approach to put idle HYPE to work

value volatility – Does a lender revenue when reimbursement happens throughout a ₿ change fee decline?

Gold Overtakes US Treasuries as Prime Reserve Asset: ECB Information

Share This Article
Facebook Twitter Email Copy Link Print
Previous Article Ethereum Is Flashing a Warning Sign Most Holders Are Ignoring – Right here Is What It Says Ethereum Is Flashing a Warning Sign Most Holders Are Ignoring – Right here Is What It Says
Next Article Dogecoin (DOGE) Breakdown Danger Grows, Is a Sharp Decline Subsequent? Dogecoin (DOGE) Breakdown Danger Grows, Is a Sharp Decline Subsequent?
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Subscribe to our newslettern

Get Newest Articles Instantly!

- Advertisement -
Ad imageAd image
Popular News
Ethereum treasury large presents 9.5% payout as BitMine paper losses prime .5 billion
Ethereum treasury large presents 9.5% payout as BitMine paper losses prime $8.5 billion
Ethereum Value Rejected Once more — Is One other Leg Decrease Brewing?
Ethereum Value Rejected Once more — Is One other Leg Decrease Brewing?
Margin-enhancing UHDMS tech advances positively at Kumba
Margin-enhancing UHDMS tech advances positively at Kumba

Follow Us on Socials

We use social media to react to breaking news, update supporters and share information

Facebook Instagram Linkedin Pinterest Tiktok Twitter Youtube
The Cryptonomics™

Cryptonomics Magazine is your premier digital source for blockchain insights, offering cutting-edge research, news, interviews, and ICO updates for everyone from entrepreneurs to institutions. We drive blockchain knowledge and growth.

Subscribe to our newsletter

Always Stay Up to Date

Subscribe to our newsletter to get our newest articles instantly!

Ethereum treasury large presents 9.5% payout as BitMine paper losses prime $8.5 billion
June 4, 2026
Arthur Hayes Dumps HYPE, NEAR Holdings Forward of ‘Mega’ AI IPOs
June 4, 2026
Mozambique tightens grip on mining with 15% state stake rule, native processing
June 4, 2026
XRP Worth To See Violent Discontinuous Repricing And $10 Might Solely Be The Begin
June 4, 2026
Apple, Meta, SpaceX and Coinbase Be part of DOJ Operation, Shutting Down 1.4 Million Rip-off Accounts
June 4, 2026
Copyright © The Cryptonomics™ , All right reserved
  • About Us
  • Advertising Solutions
  • Privacy
  • Terms
  • Advertise
Join Us!

Subscribe & Stay Ahead of the Curve with Cryptonomics !

Zero spam, Unsubscribe at any time.
Welcome Back!

Sign in to your account

Lost your password?