2

Is it possible to construct a zero knowledge proof that one encrypted number is larger (or not) than another encrypted number without releasing the values of either numbers?

Mike Edward Moras
  • 18,161
  • 12
  • 87
  • 240
B T
  • 194
  • 1
  • 8

2 Answers2

4

Yes, it is possible. Actually, any statement in NP can be proven in zero knowledge. This means that if something can be proven by releasing some information, it is possible to prove the same without releasing any information, i.e. in zero knowledge.

abacabadabacaba
  • 436
  • 1
  • 3
  • 8
2

An efficient proof of "more or equal" statement about integers committed is possible starting from Lagrange 4-squares theorem as follows:

  1. use a group of a hidden order (that is, unknown to proving party), like RSA;
  2. find four integers such that sum of their squares is the difference of original numbers committed;
  3. commit that four numbers and send all commitments to verifying party;
  4. prove knowledge of two original numbers and 4 "witness" numbers with a Schnorr-like protocol.

Low probability (like inverse challenge space) of protocol soundness error in a single run is the major difference from general proof for any NP statement.

"Proving knowledge" above holds for a protocol of argument type, on condition that proving party cant find logarithm and cant find order of the group used.

Protocol above is a generalization into proving polynomial identities of degree larger that linear in challenge, doable with Schwartz-Zippel lemma.

Vadym Fedyukovych
  • 2,347
  • 14
  • 19