Bitcoin-Cli

在 walletcreatefundedpsbt 上製作多重簽名 PSBT 時出現問題

  • September 15, 2020

我正在與 PSBT 在測試網上使用 bitcoin-cli 進行 2:2 多重簽名。這些是我遵循的步驟:

  • 使用 bitcoin-cli createmultisig 2 “[“pubkey1”, “pubkey2”]” 創建一個多重簽名
  • 使用 createpsbt 創建 psbt:

比特幣-CLI createpsbt’[{“TxID添加”:“578b667a5b2498bce06cf4b31e027a5a045af321f2465d3a7d8f302ac61759e6”,“VOUT”:1},{“TxID添加”:“237bda433527d32ddce8da640e96efcbf3fddc1fbde8add362abe197cc3c151f”,“VOUT”:0}]’’{“數據”:“49879816ffbca992d07559d56c0cb8cbc14aa7eb896bc79f532d272595b5906f”,“ tb1q369frc2yk5vfly8ya57ed2qr7p3jef6fzaqyz6": 0.00009500 }'

  • 在一個簽名者上,呼叫 walletprocesspsbt: bitcoin-cli walletprocesspsbt $psbt
  • 如果我在這裡呼叫分析 psbt $psbt,我得到的是:
{
 "inputs": [
   {
     "has_utxo": true,
     "is_final": false,
     "next": "updater",
     "missing": {
       "redeemscript": "e6b13137de705c19718f1aaf6f80709a9e6c1a7c"
     }
   },
   {
     "has_utxo": true,
     "is_final": false,
     "next": "updater",
     "missing": {
       "redeemscript": "e6b13137de705c19718f1aaf6f80709a9e6c1a7c"
     }
   }
 ],
 "fee": 0.00000500,
 "next": "updater"
}

要添加它說缺少的兌換腳本,¿我可以使用 walletcreatefundedpsbt 嗎?我試試這個:

bitcoin-cli walletcreatefundedpsbt '[{"txid": "578b667a5b2498bce06cf4b31e027a5a045af321f2465d3a7d8f302ac61759e6", "vout": 1, "scriptPubKey": "a914e6b13137de705c19718f1aaf6f80709a9e6c1a7c87", "witnessScript": "5221021efcdb8d9afb724ae7c58a3886656b56e3311e26f80a1d88e5f1f49e04d30d4b210345beb99ed5fd6ecad0e4a26b797b604495ebf85630c34e126a83c110b76dffdd52ae","amount":0.00005000}, {"txid": "237bda433527d32ddce8da640e96efcbf3fddc1fbde8add362abe197cc3c151f", "vout": 0, "scriptPubKey": "a914e6b13137de705c19718f1aaf6f80709a9e6c1a7c87", "witnessScript": "5221021efcdb8d9afb724ae7c58a3886656b56e3311e26f80a1d88e5f1f49e04d30d4b210345beb99ed5fd6ecad0e4a26b797b604495ebf85630c34e126a83c110b76dffdd52ae","amount":0.00005000}]'  '[{"data": "49879816ffbca992d07559d56c0cb8cbc14aa7eb896bc79f532d272595b5906f"}, {"tb1q369frc2yk5vfly8ya57ed2qr7p3jef6fzaqyz6": 0.00009500 }']

但我得到“資金不足”(錯誤 -4)¿我在 walletcreatefundedpsbt 命令上遺漏了什麼或錯誤?

非常感謝!:-D

使用 bitcoin-cli createmultisig 2 “[“pubkey1”, “pubkey2”]” 創建一個多重簽名

這是你的問題。createmultisig是一個只計算多重簽名地址的效用函式。它不會儲存或以其他方式將該地址添加到您的錢包中。結果,當您呼叫walletprocesspsbt更新/簽名時,錢包不知道該地址是什麼,也不知道如何為它簽名。

你想addmultisigaddress改用。

要添加它說失去的兌換腳本,我可以使用 walletcreatefundedpsbt 嗎?

walletcreatefundedpsbt是一個從頭開始建構 PSBT 的 RPC;它是更多手動呼叫的替代方法createpsbt,而不是更新現有 PSBT 的方法。你需要為此使用walletprocesspsbtPSBT,但正如我所說,你首先需要告訴錢包你正在使用的地址。

這是你的問題。createmultisig 是一個只計算多重簽名地址的實用函式。它不會儲存或以其他方式將該地址添加到您的錢包中。因此,當您呼叫 walletprocesspsbt 來更新/簽名時,錢包不知道該地址是什麼,也不知道如何為它簽名。

您想改用 addmultisigaddress 。

我嘗試

bitcoin-cli addmultisigaddress 2 "[\"02861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d216521\",\"035333ad355e76dddecce5514b9a999f4ec3002f9a00833b7b0fcfbc495c629349\"]"

{
 "address": "tb1qvj2w46y4cx0kjdsnep4ajt6gclreatvwwawazzyw2gqklwaakgzs8l24zr",
 "redeemScript": "522102861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d21652121035333ad355e76dddecce5514b9a999f4ec3002f9a00833b7b0fcfbc495c62934952ae",
 "descriptor": "wsh(multi(2,[ac6d6edb/0'/0'/2']02861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d216521,[9e497453]035333ad355e76dddecce5514b9a999f4ec3002f9a00833b7b0fcfbc495c629349))#cpxsl54h"
}

我向這個地址發送了一些硬幣。如果我做:

bitcoin-cli listunspent 0 99999 [\"tb1qvj2w46y4cx0kjdsnep4ajt6gclreatvwwawazzyw2gqklwaakgzs8l24zr\"]
[]

空的。我需要 importaddress 以在 listunspent 中出現一些 UTXO。我使用以下命令導入地址:

bitcoin-cli importaddress "tb1qvj2w46y4cx0kjdsnep4ajt6gclreatvwwawazzyw2gqklwaakgzs8l24zr" "multisig" false

當您說“它不會儲存或以其他方式將該地址添加到您的錢包”時。¿ 如果您在 listunspent 內看到與此地址關聯的 UTXO,我可以使用 PSBT 填充它需要的數據嗎?

(有一個修復問題的更新)

我使用問題中的命令創建 psbt,使用 importaddress 我有與 multisig 關聯的 utxos,我使用第一個簽名者進行 walletprocesspsbt。這就是我得到的:

bitcoin-cli decodepsbt cHNidP8BAKYCAAAAAhXi9txucDKfTt7mXCZsKa0hsjgsLoq5YZGaUuwN6jbOAAAAAAD/////sB0o0i9FetuvOvL44+4tfHB2BP/1Dq0dtBopnDuTUV0AAAAAAP////8CAAAAAAAAAAAiaiBJh5gW/7ypktB1WdVsDLjLwUqn64lrx59TLScllbWQb85KAAAAAAAAFgAUm/7/n/VJl/i0rBrmlSFsZ/NozEYAAAAAAAEAXgIAAAABsB0o0i9FetuvOvL44+4tfHB2BP/1Dq0dtBopnDuTUV0BAAAAAP7///8B6iQAAAAAAAAiACBklOrolcGfaTYTyGvZL0jHx56tjndd0QiOUgFvu72yBZj+GwABASvqJAAAAAAAACIAIGSU6uiVwZ9pNhPIa9kvSMfHnq2Od13RCI5SAW+7vbIFIgIChh+z4stjgW+oAZUTzqC9kx1MFTDjJhtGarl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64698b326d87635e212842889d2cca2bc23539b84321b6d90460",
   "hash": "5fa020d46c8b64698b326d87635e212842889d2cca2bc23539b84321b6d90460",
   "version": 2,
   "size": 166,
   "vsize": 166,
   "weight": 664,
   "locktime": 0,
   "vin": [
     {
       "txid": "ce36ea0dec529a9161b98a2e2c38b221ad296c265ce6de4e9f32706edcf6e215",
       "vout": 0,
       "scriptSig": {
         "asm": "",
         "hex": ""
       },
       "sequence": 4294967295
     },
     {
       "txid": "5d51933b9c291ab41dad0ef5ff0476707c2deee3f8f23aafdb7a452fd2281db0",
       "vout": 0,
       "scriptSig": {
         "asm": "",
         "hex": ""
       },
       "sequence": 4294967295
     }
   ],
   "vout": [
     {
       "value": 0.00000000,
       "n": 0,
       "scriptPubKey": {
         "asm": "OP_RETURN 49879816ffbca992d07559d56c0cb8cbc14aa7eb896bc79f532d272595b5906f",
         "hex": "6a2049879816ffbca992d07559d56c0cb8cbc14aa7eb896bc79f532d272595b5906f",
         "type": "nulldata"
       }
     },
     {
       "value": 0.00019150,
       "n": 1,
       "scriptPubKey": {
         "asm": "0 9bfeff9ff54997f8b4ac1ae695216c67f368cc46",
         "hex": "00149bfeff9ff54997f8b4ac1ae695216c67f368cc46",
         "reqSigs": 1,
         "type": "witness_v0_keyhash",
         "addresses": [
           "tb1qn0l0l8l4fxtl3d9vrtnf2gtvvlek3nzxtrctvx"
         ]
       }
     }
   ]
 },
 "unknown": {
 },
 "inputs": [
   {
     "witness_utxo": {
       "amount": 0.00009450,
       "scriptPubKey": {
         "asm": "0 6494eae895c19f693613c86bd92f48c7c79ead8e775dd1088e52016fbbbdb205",
         "hex": "00206494eae895c19f693613c86bd92f48c7c79ead8e775dd1088e52016fbbbdb205",
         "type": "witness_v0_scripthash",
         "address": "tb1qvj2w46y4cx0kjdsnep4ajt6gclreatvwwawazzyw2gqklwaakgzs8l24zr"
       }
     },
     "non_witness_utxo": {
       "txid": "ce36ea0dec529a9161b98a2e2c38b221ad296c265ce6de4e9f32706edcf6e215",
       "hash": "ce36ea0dec529a9161b98a2e2c38b221ad296c265ce6de4e9f32706edcf6e215",
       "version": 2,
       "size": 94,
       "vsize": 94,
       "weight": 376,
       "locktime": 1834648,
       "vin": [
         {
           "txid": "5d51933b9c291ab41dad0ef5ff0476707c2deee3f8f23aafdb7a452fd2281db0",
           "vout": 1,
           "scriptSig": {
             "asm": "",
             "hex": ""
           },
           "sequence": 4294967294
         }
       ],
       "vout": [
         {
           "value": 0.00009450,
           "n": 0,
           "scriptPubKey": {
             "asm": "0 6494eae895c19f693613c86bd92f48c7c79ead8e775dd1088e52016fbbbdb205",
             "hex": "00206494eae895c19f693613c86bd92f48c7c79ead8e775dd1088e52016fbbbdb205",
             "reqSigs": 1,
             "type": "witness_v0_scripthash",
             "addresses": [
               "tb1qvj2w46y4cx0kjdsnep4ajt6gclreatvwwawazzyw2gqklwaakgzs8l24zr"
             ]
           }
         }
       ]
     },
     "partial_signatures": {
       "02861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d216521": "304402203ea65774220d43e9e8423079a7a7671de49075356eba3c9d09f53d2991b7664502203102527538fb62c34949350fd591b64e67eb3fa270d1582de7440bc032f328ae01"
     },
     "witness_script": {
       "asm": "2 02861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d216521 035333ad355e76dddecce5514b9a999f4ec3002f9a00833b7b0fcfbc495c629349 2 OP_CHECKMULTISIG",
       "hex": "522102861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d21652121035333ad355e76dddecce5514b9a999f4ec3002f9a00833b7b0fcfbc495c62934952ae",
       "type": "multisig"
     },
     "bip32_derivs": [
       {
         "pubkey": "02861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d216521",
         "master_fingerprint": "ac6d6edb",
         "path": "m/0'/0'/2'"
       },
       {
         "pubkey": "035333ad355e76dddecce5514b9a999f4ec3002f9a00833b7b0fcfbc495c629349",
         "master_fingerprint": "9e497453",
         "path": "m"
       }
     ]
   },
   {
     "witness_utxo": {
       "amount": 0.00010000,
       "scriptPubKey": {
         "asm": "0 6494eae895c19f693613c86bd92f48c7c79ead8e775dd1088e52016fbbbdb205",
         "hex": "00206494eae895c19f693613c86bd92f48c7c79ead8e775dd1088e52016fbbbdb205",
         "type": "witness_v0_scripthash",
         "address": "tb1qvj2w46y4cx0kjdsnep4ajt6gclreatvwwawazzyw2gqklwaakgzs8l24zr"
       }
     },
     "non_witness_utxo": {
       "txid": "5d51933b9c291ab41dad0ef5ff0476707c2deee3f8f23aafdb7a452fd2281db0",
       "hash": "5d51933b9c291ab41dad0ef5ff0476707c2deee3f8f23aafdb7a452fd2281db0",
       "version": 2,
       "size": 166,
       "vsize": 166,
       "weight": 664,
       "locktime": 1834648,
       "vin": [
         {
           "txid": "df63442f66ee2805db4c90cd1864e9f9752b17ba25095b4d1749a123db18f721",
           "vout": 1,
           "scriptSig": {
             "asm": "",
             "hex": ""
           },
           "sequence": 4294967294
         },
         {
           "txid": "2e6da1c2a6d5d066da22e4285a1e6d3eb580734ac4be11ad950404c56a49f4e6",
           "vout": 1,
           "scriptSig": {
             "asm": "",
             "hex": ""
           },
           "sequence": 4294967294
         }
       ],
       "vout": [
         {
           "value": 0.00010000,
           "n": 0,
           "scriptPubKey": {
             "asm": "0 6494eae895c19f693613c86bd92f48c7c79ead8e775dd1088e52016fbbbdb205",
             "hex": "00206494eae895c19f693613c86bd92f48c7c79ead8e775dd1088e52016fbbbdb205",
             "reqSigs": 1,
             "type": "witness_v0_scripthash",
             "addresses": [
               "tb1qvj2w46y4cx0kjdsnep4ajt6gclreatvwwawazzyw2gqklwaakgzs8l24zr"
             ]
           }
         },
         {
           "value": 0.00009780,
           "n": 1,
           "scriptPubKey": {
             "asm": "0 e6136f30c88d327db59ecdbc2dec0339a82d74a8",
             "hex": "0014e6136f30c88d327db59ecdbc2dec0339a82d74a8",
             "reqSigs": 1,
             "type": "witness_v0_keyhash",
             "addresses": [
               "tb1qucfk7vxg35e8mdv7ek7zmmqr8x5z6a9geyj9ae"
             ]
           }
         }
       ]
     },
     "partial_signatures": {
       "02861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d216521": "30440220070aee8223bcf2bc6e6b63fe5624111556180ac79042c76379e6ed28e978ad17022023c14049e4b3638e863aa205ce6151dcb2b217846b5c437e472feaa12b9dfa8b01"
     },
     "witness_script": {
       "asm": "2 02861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d216521 035333ad355e76dddecce5514b9a999f4ec3002f9a00833b7b0fcfbc495c629349 2 OP_CHECKMULTISIG",
       "hex": "522102861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d21652121035333ad355e76dddecce5514b9a999f4ec3002f9a00833b7b0fcfbc495c62934952ae",
       "type": "multisig"
     },
     "bip32_derivs": [
       {
         "pubkey": "02861fb3e2cb63816fa8019513cea0bd931d4c1530e3261b466ab9788d7d216521",
         "master_fingerprint": "ac6d6edb",
         "path": "m/0'/0'/2'"
       },
       {
         "pubkey": "035333ad355e76dddecce5514b9a999f4ec3002f9a00833b7b0fcfbc495c629349",
         "master_fingerprint": "9e497453",
         "path": "m"
       }
     ]
   }
 ],
 "outputs": [
   {
   },
   {
     "bip32_derivs": [
       {
         "pubkey": "02600d77abeecd9efc19fea943ed47ebf388cf4d924bc2a332cd37f01908255ddf",
         "master_fingerprint": "ac6d6edb",
         "path": "m/0'/0'/4'"
       }
     ]
   }
 ],
 "fee": 0.00000300
}

我和第二個簽名者簽名。

bitcoin-cli --datadir=/home/biteskola/.daniel walletprocesspsbt cHNidP8BAKYCAAAAAhXi9txucDKfTt7mXCZsKa0hsjgsLoq5YZGaUuwN6jbOAAAAAAD/////sB0o0i9FetuvOvL44+4tfHB2BP/1Dq0dtBopnDuTUV0AAAAAAP////8CAAAAAAAAAAAiaiBJh5gW/7ypktB1WdVsDLjLwUqn64lrx59TLScllbWQb85KAAAAAAAAFgAUm/7/n/VJl/i0rBrmlSFsZ/NozEYAAAAAAA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/onDRWC3nRAvAMvMorgEBBUdSIQKGH7Piy2OBb6gBlRPOoL2THUwVMOMmG0ZquXiNfSFlISEDUzOtNV523d7M5VFLmpmfTsMAL5oAgzt7D8+8SVxik0lSriIGAoYfs+LLY4FvqAGVE86gvZMdTBUw4yYbRmq5eI19IWUhEKxtbtsAAACAAAAAgAIAAIAiBgNTM601Xnbd3szlUUuamZ9OwwAvmgCDO3sPz7xJXGKTSQSeSXRTAAEApgIAAAACIfcY2yOhSRdNWwkluhcrdfnpZBjNkEzbBSjuZi9EY98BAAAAAP7////m9ElqxQQEla0RvsRKc4C1Pm0eWijkItpm0NWmwqFtLgEAAAAA/v///wIQJwAAAAAAACIAIGSU6uiVwZ9pNhPIa9kvSMfHnq2Od13RCI5SAW+7vbIFNCYAAAAAAAAWABTmE28wyI0yfbWezbwt7AM5qC10qJj+GwABASsQJwAAAAAAACIAIGSU6uiVwZ9pNhPIa9kvSMfHnq2Od13RCI5SAW+7vbIFIgIChh+z4stjgW+oAZUTzqC9kx1MFTDjJhtGarl4jX0hZSFHMEQCIAcK7oIjvPK8bmtj/lYkERVWGArHkELHY3nm7SjpeK0XAiAjwUBJ5LNjjoY6ogXOYVHcsrIXhGtcQ35HL+qhK536iwEBBUdSIQKGH7Piy2OBb6gBlRPOoL2THUwVMOMmG0ZquXiNfSFlISEDUzOtNV523d7M5VFLmpmfTsMAL5oAgzt7D8+8SVxik0lSriIGAoYfs+LLY4FvqAGVE86gvZMdTBUw4yYbRmq5eI19IWUhEKxtbtsAAACAAAAAgAIAAIAiBgNTM601Xnbd3szlUUuamZ9OwwAvmgCDO3sPz7xJXGKTSQSeSXRTAAAiAgJgDXer7s2e/Bn+qUPtR+vziM9NkkvCozLNN/AZCCVd3xCsbW7bAAAAgAAAAIAEAACAAA==
{
 "inputs": [
   {
     "has_utxo": true,
     "is_final": false,
     "next": "signer",
     "missing": {
       "signatures": [
         "9e497453046a2170505985012c40e447b24a0c9a"
       ]
     }
   },
   {
     "has_utxo": true,
     "is_final": false,
     "next": "signer",
     "missing": {
       "signatures": [
         "9e497453046a2170505985012c40e447b24a0c9a"
       ]
     }
   }
 ],
 "estimated_vsize": 276,
 "estimated_feerate": 0.00001086,
 "fee": 0.00000300,
 "next": "signer"
}

我認為使用 walletprocesspsbt 等它簽署了 UTXOS。

非常感謝!:-D

更新1:

結合兩個簽名修復了缺少的簽名:

bitcoin-cli combinepsbt '["signer1_psbt","signer2_psbt" ]'

<https://blockstream.info/testnet/tx/5fa020d46c8b64698b326d87635e212842889d2cca2bc23539b84321b6d90460?expand>

據我了解,一個簽名者可以創建 psbt 和 walletprocesspsbt。另一個簽名者做同樣的事情,然後結合兩個 psbt ¿ 對嗎?

引用自:https://bitcoin.stackexchange.com/questions/99022