A cleaner way to sign tx inputs.