Ensure input's script type and path match the scriptPubKey.