PSBT Not Signing via HWI – `0x5515` Error from `bitcoininsotype.signpsbt:4`

I'm trying to sign a valid PSBT using HWI with a hardware wallet (Ledger), but I'm getting an error during signing:

HWIError: 0x5515 error in bitcoininsotype.signpsbt:4

🔧 Setup:

  • Network: regtest

  • Hardware wallet: Ledger Nano S Plus

  • Descriptor used (watch-only wallet imported to Bitcoin Core):

    tr([<fingerprint>/86h/1h/0h]tpub.../0/*)
    
  • UTXO:

    {
      "desc": "tr([fingerprint/86h/1h/0h/0/0]pubkey)#checksum",
      "amount": 1.0,
      ...
    }
    
  • PSBT creation (using bitcoin-cli):

    bitcoin-cli -regtest -rpcwallet=tapwatch walletcreatefundedpsbt \
    "[{ \"txid\": \"...\", \"vout\": 0 }]" \
    "[{ \"bcrt1...\": 0.00099 }]" \
    0 '{ "includeWatching": true, "replaceable": false, "subtractFeeFromOutputs": [0] }'
    
  • Signing command:

    hwi --device-type ledger --fingerprint <FPR> signpsbt <base64_psbt>
    

❌ Problem:

HWI throws this error:

0x5515 error in bitcoininsotype.signpsbt:4
  • PSBT inputs are Taproot (Bech32m).

  • Wallet was created via:

    createwallet "tapwatch" true true "" true
    
  • Descriptor imported using importdescriptors.

✅ Tried:

  • Verified descriptor and derivation paths.
  • Funded address matches the descriptor.
  • Ledger is on latest firmware.
  • Ledger Live is not running (to avoid interference).
  • Attempted multiple derivation paths: m/86h/1h/0h/0/0 and m/86h/1h/0h/0/1.

🧠 Questions:

  1. What does the 0x5515 error code indicate?
  2. Is it possible that HWI/Bitcoin Core is producing an invalid or incomplete PSBT for Ledger?
  3. Are there specific limitations with Ledger regarding Taproot + HWI signing (e.g., script type, derivation path)?
  4. How can I fix or debug this issue?

Any insight into what this error means or how to resolve it would be appreciated.



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/h1bEV6n
via IFTTT

Popular posts from this blog

Bitcoin Mining Could Be Strengthening The Ruble, Russian Central Bank Says

Crypto Exec Warns Tokenization Is Moving Faster Than Expected

Bitwise Clients Pour $69M Into Solana as Bulls Fight to Reclaim $200 Resistance Zone