rpc: add `sign` option to `descriptorprocesspsbt` #35425

pull w0xlt wants to merge 2 commits into bitcoin:master from w0xlt:descriptorprocesspsbt-sign-false changing 3 files +23 −8
  1. w0xlt commented at 8:35 AM on May 31, 2026: contributor

    walletprocesspsbt has long supported sign=false to update a PSBT without producing signatures. This PR adds the same mode to descriptorprocesspsbt.

    This lets descriptor-based workflows add UTXO data, scripts, and key origin metadata while leaving signing for a later step or another participant.

    Includes test coverage that sign=false:

    • fills descriptor/UTXO metadata
    • does not add signatures
    • does not finalize inputs
    • returns complete=false without hex
  2. rpc: add sign option to descriptorprocesspsbt
    walletprocesspsbt already supports updating a PSBT without signing.
    Add the same mode to descriptorprocesspsbt so descriptor-based
    callers can add descriptor and UTXO metadata before signatures are
    produced.
    
    The default remains sign=true, preserving existing behavior.
    61a0c1a5f1
  3. test: cover descriptorprocesspsbt without signing
    Verify that sign=false still fills descriptor and UTXO metadata while
    leaving the input unsigned and unfinalized. This covers the new
    update-only mode without broadening the existing descriptorprocesspsbt
    test.
    cfa00fabef
  4. DrahtBot added the label RPC/REST/ZMQ on May 31, 2026
  5. DrahtBot commented at 8:35 AM on May 31, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35425.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  6. w0xlt closed this on May 31, 2026

Contributors

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: 2026-05-31 17:50 UTC

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