This is one of the main motivating examples for attribute-based credentials, which provably only reveal the selected attribute to verifiers.