Zama的fhEVM:基于全同态加密实现的隐私智能合约

1. 引言

Zama的fhEVM定位为:

  • 基于全同态加密实现的隐私智能合约 解决方案

开源代码见:

Zama的fhEVM协议中主要包含:

  • https://github.com/zama-ai/tfhe-rs(Rust):基于Rust实现的,TFHE Scheme for Boolean and Integer Arithmetics Over Encrypted Data。
  • A decryption mechanism [Sma23] based on distributed threshold protocols [DDE+23] that prevents misuse by malicious smart contracts, yet is flexible and nonintrusive to honest smart-contract developers.
  • A Solidity library that makes it easy for smart-contract developers to use encrypted data in their contracts, without any changes to compilation tools. 即https://github.com/zama-ai/fhevm

现有隐私合约解决方案对比为:
在这里插入图片描述
Zama的fhEVM支持:

  • 端到端的交易和状态加密:交易中的数据是加密的,对任何人都不可见。
  • 可组合性以及链上数据可用性:在总是保持加密的情况下,对状态进行更新。
  • 不影响现有dapps和状态:加密状态可与现有公开状态共存,不会影响现有dapps。

开发者可不用学习密码学只是,就可编写隐私智能合约,因fhEVM中:

  • 集成Solidity:fhEVM合约为简单的solidity合约,可使用传统solidity工具链来构建。
  • 简单的开发者体验:开发者可使用euint数据类型来标记其合约内哪些内容是私有的。
  • 可编程隐私性:对加密状态的访问控制的所有逻辑,均由开发者在其合约内定义。

参考资料

[1] fhEVM白皮书
[2] fhEVM官网

猜你喜欢

转载自blog.csdn.net/mutourend/article/details/133548078