当前位置:网站首页>Zero-knowledge proof - zkSNARK proof system
Zero-knowledge proof - zkSNARK proof system
2022-08-04 20:02:00 【Looking Back at the White Speed Dragon King】
This notebook is excerpted from Steven Yue
Three core algorithms:
setup convention circuit, generate random parameters
prove: the prover generates a zero-knowledge proof
verify: the verifier verifies
Completeness:
Proof of knowledge: (verykey)
Prove that the prover does have some information that we don't know, that is, this w does exist
Short Proof: Short and Efficient
Zero-Knowledge: Public input x and proof pi cannot reveal w
PCP Theorem (Probability Verifiable Theorem)
All NP-hard problems can be proved by random sampling by random verification methods

Instead of looking directly at pi, it can only be extracted from itk-bit
In general, it is a random check. The more correct the random check, the lower the possibility of fraud (a bit of a hypothesis test)
Kilian SNARK
PCP may have huge read-only storage area
We will program a commitment in readonly
The prover only needs to attach a Merkle Proof to prove that the data submitted by himself is indeed in the pi when displaying the data
This can avoid storing a large amount of pi information
Non-Interactive Killian SNARK
The verifier does not need to be online when the prover submits the proof, it can verify at random events later
Requires Fiat-Shamir-Heuristic, which can convert any interactive random verification protocol into a non-interactive one
First we need a secure hash function H (random oracle, no matter what the input is, the output value can be regarded as a random number that is not associated with the input) 
The key to the transformation is to rely on the random value of the authenticator to generate a secure hash function
LCPC (Linear)
Two polynomials with different coefficients of order d will only have at most d points coincident
By treating the proved value as the coefficient of the polynomial, and then verifying whether the value of the polynomial at a certain point is equal


So we convert SNARK into polynomial form
But it is difficult for the circuit to become polynomial form, so we need aThe program matrix called R1CS

Polynomial interpolation, Vandermonde polynomial, restores eachA coefficient
Construct into polynomials P, Q, R
Prove that P * Q = R
Summary
PCP theorem is to quickly verify the solution of any NP problem by random sampling method.
LPCP is a constrained version of PCP, which describes the method of quickly verifying the coefficients of polynomials by randomly checking the values of polynomials.
Fiat-Shamir Heuristic can turn an interactive protocol into a non-interactive protocol.
Starting from a mathematical operation circuit, after transforming into an R1CS program matrix, it can be finally restored to a polynomial
边栏推荐
- SAP 电商云 Accelerator 和 Spartacus UI 的工作机制差异
- "WAIC 2022 · hackers marathon" two ants wealth competition invited you to fight!
- 运维就业现状怎么样?技能要求高吗?
- In July 2022, domestic database memorabilia
- 面试官:JVM运行时数据区包含哪几部分?作用是啥?
- 力扣题(5)—— 最长回文子串
- 二叉树的前序遍历
- C#弹出询问对话框
- vs Code 运行一个本地WEB服务器
- How to promote the implementation of rural revitalization
猜你喜欢
随机推荐
Nuxt.js的优缺点和注意事项
「 WAIC 2022 · 黑客马拉松」蚂蚁财富两大赛题邀你来战!
The establishment of simple data cache layer
5 g NR notes
linkboy 5.0 正式发布,新增语音识别、图像识别
awk statistical average max min
刷题-洛谷-P1200 你的飞碟在这儿Your Ride Is Here
June To -.-- -..- -
JSD-2204-酷莎商城(管理员模块)-密码加密-Day10
如果是测试 axi dma抓数的话 看这里
从卖产品到卖“链路”:20条策略 解读直播带货迭代玩法
运维就业现状怎么样?技能要求高吗?
[Awards for Essays] Autumn recruitment special training to create your exclusive product experience
Chrome安装zotero connector 插件
c sqlite...
awk statistical difference record
String中的hashcode缓存以及HashMap中String作key的好处
How to promote the implementation of rural revitalization
密码学系列之:PEM和PKCS7,PKCS8,PKCS12
如何手动下载并安装 Visual Studio Code 的 SAP Fiori tools - Extension Pack









