Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

区块链与零知识证明的关系 #80

Open
winterpi opened this issue Jul 2, 2024 · 0 comments
Open

区块链与零知识证明的关系 #80

winterpi opened this issue Jul 2, 2024 · 0 comments

Comments

@winterpi
Copy link
Owner

winterpi commented Jul 2, 2024

区块链和零知识证明都是”信任“工具

  • 区块链:采用多节点重复记账(duplicate recording)的方式,确保交易的不可篡改及可追溯性,实现多个机构间的信任,完成价值传递;
  • 零知识证明ZKP:采用密码学的方式,实现交易的可验证性,确保交易的正确性,进而构成”信任“。

区块链与ZKP的结合

  • 区块链默认是不包含ZKP的
  • 区块链(Layer1):默认使用智能合约执行计算过程,所有交易存储在链上;
  • ZKP(Layer2):可以采用链下计算(off chain)的方式,只是把ZK的证明保存在链上,由智能合约进行验证;
  • 两者结合的优点:如果交易的计算过程较为复杂,采用智能合约会导致计算的gas费用很高,开销较大;因此可以将复杂的计算迁移到链下,只是将计算的ZK放到链上。

思考 ZKP 对数据使用的思考

  • 保护数据的真实性:不泄露原始数据,但确保数据是真实可用的;
  • 实现数据的透明性:原始数据经过拥有者签名,数据使用过程使用ZK证明,确保数据的安全性(如未投毒等)
  • 如何利用ZK来保护个人的数据钱包?
@winterpi winterpi changed the title ZKP 与 区块链的关系 区块链与零知识证明的关系 Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant