Ask HN: Cryptographic salary negotiation protocol?
If possible, this would be a useful first filter to check for employment compatibility, without leaking information for the actual salary negotiations.
More formally, if interviewer Alice has a secret number X (the maximum salary that she is willing to pay), and interviewee Bob has a secret number Y (the minimum salary that he is prepared to accept), is there an exchange of information that allows both parties to establish if X >= Y without revealing Y to Alice or X to Bob? Given that Alice already knows X, and Bob already knows Y, it should not be possible to determine the difference between X and Y from the exchange of information.
This is obviously trivial to solve with the use of a trusted third party. Is it possible to solve without the use of a trusted third party?