零知識性質意味着證據不可區分性

證據不可區分性

定義. (證據不可區分性,Witness Indistinguishability,簡稱WI)記Π=(Setup,Prove,Vrfy,Check)\Pi = (\mathsf{Setup}, \mathsf{Prove}, \mathsf{Vrfy}, \mathsf{Check})是與語言LNPL \in NP相關的證明協議,對於任意兩個滿足Check(x,w1)=1Check(x,w2)=1\mathsf{Check}(x, w_1) = 1 \land \mathsf{Check}(x, w_2) = 1的證據w1w_1w2w_2,若以下條件成立,則稱協議Π\Pi滿足證據不可區分性
π1Prove(crs,x,w1)π2Prove(crs,x,w2)π1cπ2 \pi_1 \gets \mathsf{Prove}(\it{crs}, x, w_1) \land \pi_2 \gets \mathsf{Prove}(\it{crs}, x, w_2) \land \pi_1 \overset{c}{\approx} \pi_2。

ZK意味着WI

定理. (zero knowledge imples witness indistinguishability)記Π=(Setup,Prove,Vrfy,Check)\Pi = (\mathsf{Setup}, \mathsf{Prove}, \mathsf{Vrfy}, \mathsf{Check})是與語言LNPL \in NP相關的證明協議,若協議Π\Pi滿足零知識性質,則它同時滿足證據不可區分性。

證明. 假設證據w1w_1w2w_2滿足Check(x,w1)=1Check(x,w2)=1\mathsf{Check}(x, w_1) = 1 \land \mathsf{Check}(x, w_2) = 1,由零知識性質可知,有
Pr[crsSetup(1λ):AProve(crs,x,w)(crs)1]Pr[(crs,td)Sim1(1λ):ASim2(crs,td,x)(crs)1]negl(λ) \begin{aligned} \Big| \mathrm{Pr}[ \it{crs} \gets \mathsf{Setup}(1^\lambda) : \mathscr{A}^{\mathsf{Prove}(\it{crs}, x, w)}(\it{crs}) \to 1] - \\ \mathrm{Pr}[ (\it{crs, td}) \gets \mathsf{Sim^1}(1^\lambda) : \mathscr{A}^{\mathsf{Sim}^2(\it{crs, td}, x)}(\it{crs}) \to 1] \Big| \leq \mathsf{negl}(\lambda), \end{aligned}

π1Prove(crs,x,w1)πsSim(crs,td,x)π1cπs \pi_1 \gets \mathsf{Prove}(\it{crs}, x, w_1) \land \pi_s \gets \mathsf{Sim}(\it{crs, td}, x) \land \pi_1 \overset{c}{\approx} \pi_s,且
π2Prove(crs,x,w2)πsSim(crs,td,x)π2cπs \pi_2 \gets \mathsf{Prove}(\it{crs}, x, w_2) \land \pi_s \gets \mathsf{Sim}(\it{crs, td}, x) \land \pi_2 \overset{c}{\approx} \pi_s,
根據不可區分性的傳遞法則,進一步有π1cπ2\pi_1 \overset{c}{\approx} \pi_2,證畢。

一個例子

假設函數f(ω)=ω2+1f(\omega) = \omega^2+1,語言L=def{ι:ω s.t. ι=gf(ω)}L \overset{\text{def}}{=} \{ \iota : \exists \omega ~ \text{s.t.} ~ \iota=g^{f(\omega)} \},其中gg爲羣G\mathbb{G}的生成元。

若離散對數問題是困難的,易推LNPL \in NP。證明思路如下:給定ι\iota,假設敵手A\mathscr{A}能夠找到ω\omega,則能計算出f(ω)f(\omega),從而找到離散對數難題的解,這與題設不符合,故假設不成立,A\mathscr{A}以可忽略概率找到ω\omega

P\mathcal{P}爲了證明它知道ω\omega,可以先計算x:=f(ω)x := f(\omega),然後運行Schnorr協議證明它知道xx

  • 易構造出模擬器Sim\mathsf{Sim}
  • P\mathcal{P}^*能夠給出有效證明π\pi,易證它必然知道ω=±x1\omega^*= \pm \sqrt{x - 1}

可進一步推出上述協議是ZKP。

從上述例子中可以得到WI的直觀理解。

Reference

http://www.cs.umd.edu/~jkatz/gradcrypto2/NOTES/lecture21.pdf

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章