combinepsbt RPC does not work with P2TR inputs #27219

issue ghost openend this issue on March 7, 2023
  1. ghost commented at 11:14 am on March 7, 2023: none

    combinepsbt allows to distribute identical PSBTs to peers for signature and consolidate the resulting PSBT. However, this does not work with taproot UTXOs for me.

    Expected behavior

    Combined PSBT should return 'complete': True if all inputs are signed in different PSBTs and finalized with finalizepsbt

    Actual behavior

    Unable to finalize the transaction that was combined from multiple signed PSBTs.

    To reproduce

    PSBT 1

    0cHNidP8BAP2uAQIAAAAFx31XtYDPBwcoApG/qyvysMHW1mSKoF8kbyPn7EcUsOIAAAAAAP3///8tdEqDo/vSgTbsEpxTyuKF1wRlLqYaZsIRXLzqNkUWnwEAAAAA/f///4ywsdbrtM1Y3UiwdHkmWhN+iLKmY+ydhXWQMtzPQ5L9AAAAAAD9////ZliKNCp8zVXttzwP9KwaQxax9NophK/7E+2qE8dbrmYBAAAAAP3////rLIyyvsaYUJG/oUCfvasbCcwYt9RZYAK5s1sMQ9KpmwEAAAAA/f///wV4QQ8AAAAAACJRIMWp5VMEe1PO4vb4CmutZuMORkSggAdvQ+oD8E9EQ3OdeEEPAAAAAAAiUSCmUymUNVrg6qi94R9eEOTHPxQLDH4G7x673nJMyaxEcnhBDwAAAAAAIlEgLWHMAQo44IHU+Oaz60NKkUhvvkFjqE35QwCZhvzjJH54QQ8AAAAAACJRIKxKBxMRn+90Tr16E4Pa7SHmzL1JOj1CMCJi669o8EJQeEEPAAAAAAAiUSBxoo82RZw5zBgJJxAqrqJmVltCQ18+8hMUZgE2eUi+/QAAAAAAAQB9AgAAAAHKRUAzcxXq/mW3+qkNncaCNTAgRyTP4PEEC0FDlwj23AAAAAAA/v///wJAQg8AAAAAACJRIH/ARsdmingov+t3LNl2tXXodV43ysMejuJx1ZNPT4+iH7gs41AGAAAWABRXCzdXUGWLm7WNsjPayTxzBhIdGu4GAgABAStAQg8AAAAAACJRIH/ARsdmingov+t3LNl2tXXodV43ysMejuJx1ZNPT4+iIRZe7/5GAivuaLJTVSLb5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v75/sBFyZyxBfgv0XezveKMfGkBuVphtZ7R9+FoI8IGQAzz9POVgAAgAEAAIAAAACAAAAAAAoAAAAA
    

    System information

    Bitcoin Core v24.0.1 and all the above PSBTs are for Signet

  2. unknown added the label Bug on Mar 7, 2023
  3. achow101 commented at 3:59 pm on March 7, 2023: member
    The combined PSBT is correctly combined, there are just no signatures in any of the PSBTs. There’s nothing to finalize, so it cannot be finalized.
  4. ghost commented at 4:20 pm on March 7, 2023: none

    The combined PSBT is correctly combined, there are just no signatures in any of the PSBTs. There’s nothing to finalize, so it cannot be finalized.

    This wasn’t don’t manually, all PSBTs passed through walletprocesspsbt, I used the same code for segwit inputs and it worked. I will re-test everything although fractalenrypt told me this can be fixed with an open PR: https://twitter.com/FractalEncrypt/status/1633073353580859396

  5. achow101 commented at 4:22 pm on March 7, 2023: member
    Yes, it is a bug in signing, not in combining.
  6. fanquake commented at 8:50 am on March 8, 2023: member
    Ok. So this is fixed/closed by #23502 (assume the same for one of the alternate PRs).
  7. MarcoFalke added the label PSBT on Mar 8, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-03 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me