coldstorage – bitcoin core shopper lacking public key when producing PSBT transaction

0
51


I exploit bitcoin core shopper for offline signing. I create a ledgcy watch_only pockets, import public key utilizing importpubkey, then rescanblockchain, then generate psbt transaction textual content(psbt_tx_txt), and at last efficiently signal offline in bitcoin core signing shopper.

Nonetheless, if I restart the bitcoin core watch_only shopper, the psbt_tx_txt fails:

After restarting bitcoin core watch_only shopper, and generate the identical psbt_tx_txt once more, analyze it with analyzepsbt, it prompts lacking pubkey:

{
  "inputs": [
    {
      "has_utxo": true,
      "is_final": false,
      "next": "updater",
      "missing": {
        "pubkeys": [
          "a_public_key_id"
        ]
      }
    }
  ],
  "payment": 0.00001100,
  "subsequent": "updater"
}

However once I question the deal with info with getaddressinfo, the general public key’s precisely included in it:

{
  "deal with": "bc1......",
  "scriptPubKey": "......",
  "ismine": false,
  "solvable": true,
  "desc": "wpkh(......)#l8qyd3u4",
  "iswatchonly": true,
  "isscript": false,
  "iswitness": true,
  "witness_version": 0,
  "witness_program": "......",
  "pubkey": "a_PUBLIC_KEY",
  "ischange": false,
  "timestamp": 1,
  "labels": [
    "......"
  ]
}

If I exploit the psbt_tx_txt to signal on the signing shopper, the bitcoin core shopper prompts: transaction is lacking some details about inputs.


Which means each time I create an offline signed transaction, I must create a pockets, importpubkey,and rescanblockchain.

I feel the general public key ought to be capable of be inserted into the psbt_tx_txt, subsequent time I can simply create the psbt, am I lacking one thing?

LEAVE A REPLY

Please enter your comment!
Please enter your name here