Decorate a signer so it reveals preimage on every input it signs.
The ordering encoded here is the whole point: the condition witness is NOT
part of what is signed, so attaching it before signing leaves a signature
over a PSBT that no longer matches once the field is present — which the
server rejects as INVALID_SIGNATURE. Decorate per spend, never wallet-wide.
For any condition-leaf spend (VHTLC claims on both swap directions); the
generic signature keeps the decorated identity's own type, so the result is
still whatever was passed in.
Decorate a signer so it reveals
preimageon every input it signs.The ordering encoded here is the whole point: the condition witness is NOT part of what is signed, so attaching it before signing leaves a signature over a PSBT that no longer matches once the field is present — which the server rejects as
INVALID_SIGNATURE. Decorate per spend, never wallet-wide.For any condition-leaf spend (VHTLC claims on both swap directions); the generic signature keeps the decorated identity's own type, so the result is still whatever was passed in.