Equality test
This functionality, denoted as returns a shared bit corresponding to the equality property. We consider only the particular case where the RHS is zero, because general equality is implemented trivially as .
To obtain we do the following:
- Compute
- Open , denote as its bit decomposition.
- Set
It is important to note that because is uniformly distributed in , revealing doesn't leak any information about .