Score:1

zkSNARKS: If we are already using Homomorphic Encryption/Hiding, why is the shift by $\delta$ required for Zero Knowledge?

et flag

I am reading this explanation of zkSnark written by Maksym Petkus - http://www.petkus.info/papers/WhyAndHowZkSnarkWorks.pdf

From Section 3.5

Because verifier can extract knowledge about the unknown polynomial $p(x)$ only from the data sent by the prover, let us consider those provided values (the proof): $g^p$, $g^{p'}$, $g^h$. They participate in the following checks:

$g^p = (g^{h})^{t(s)}$ (polynomial $p(x)$ has roots of $t(x)$)

$(g^p)^\alpha = g^{p'}$ (polynomial of a correct form is used)

The question is how do we alter the proof such that the checks still hold, but no knowledge can be extracted? One answer can be derived from the previous section: we can "shift" those values by some random number $\delta$ (delta), e.g., $(g^p)^{\delta}$. Now, in order to extract the knowledge, one first needs to find $\delta$ which is considered infeasible. Moreover, such randomization is statistically indistinguishable from random.

We already have Strong Homomorphic Encryption (as stated in Section 3.3.3),

$E(v) = g^v \pmod n$

The $g^p$, $g^{p'}$, $g^h$ are created as above. I mean how do you extract info about p, p' & h from $g^p$, $g^{p'}$, $g^h$ that the shift by $\delta$ is required?

So then why is the $\delta$ shift required for Zero Knowledge?

Score:1
gb flag

Zero-knowledge means zero knowledge, that we learn literally nothing except the validity of the proof.

Even if we don't learn $p, p'$ and $h$ themselves, we still learn $g^p$ which we could not have known before the protocol took place. So we have learned something, even if it isn't $p$.

Shifting by $\delta$ removes this leakage. Then we learn absolutely nothing, because the $g^{p\delta}$ completely hides $g^p$. As they say, "such randomization is statistically indistinguishable from random." If I gave you a random $X = g^x$, where $x$ is generated as $p\delta$ for a random $\delta$, you have no way of knowing anything about $\delta$ or $p$ (including $g^p$) from it.

et flag
Ok, got it. I guess it's like a using an IV or nonce in symmetric encryption to randomize so that the same input twice gives different output.
meshcollider avatar
gb flag
Yep, exactly :)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.