This PR is a simple follow-up for #28025. It introduces a signing_input_segwitv0 helper in order to deduplicate the following steps needed to create a segwitv0 ECDSA signature:
- calculate the
SegwitV0SignatureHashwith the desired sighash type - create the actual digital signature by calling ECKey.sign_ecdsa on the signature message hash calculated above
- put the DER-encoded result (plus sighash byte) at the bottom of the witness stack