I’m testing an offline signer on Signet for a 2-of-3 wsh(sortedmulti) wallet (BIP48 keys, m/48’/1’/0’/2′). The PSBT is built by a watch-only Bitcoin Core wallet on an online machine, then carried by USB to an air-gapped machine to sign.
To stop an online attacker from swapping the change address, my plan is for the signer to re-derive each output’s witness script from PSBT_OUT_WITNESS_SCRIPT plus PSBT_OUT_BIP32_DERIVATION, and check that the fingerprints and xpubs match the wallet’s own descriptor.
- Is that enough, or should the signer require the full descriptor out of band and refuse any output whose script it can’t rebuild itself?
- Should it also check that every cosigner xpub in the output matches the ones in the input, so an attacker can’t add a key they control to the "change"?
- Are there known pitfalls with sortedmulti key ordering or derivation-path tricks here?
Signet/testnet only, no real funds. Prior art I’m learning from: Sparrow, Liana, and hardware wallet change verification.













