Back to Fhevm

README

gateway-contracts/README.md

0.12.32.9 KB
Original Source

Introduction

The FHEVM Gateway is a set of smart contracts that enables decrypting FHE ciphertexts from different host chains. It acts as an intermediary between the chains, the Key Management Service (KMS) and the coprocessors found within the FHEVM protocol. These contracts are responsible for:

  • Verifying the legitimacy of decryption requests
  • Centralizing multi-chain ciphertexts access
  • Centralizing multi-chain ciphertexts commitments
  • Orchestrating KMS materials
  • Orchestrating protocol payments

Main features

ContractDescriptionFeatures
CiphertextCommitsStore ciphertext commitments from all host chains- Store regular ciphertext commitments
  • Store Switch and Squash (SNS) ciphertext commitments | | Decryption | Decrypt FHE ciphertexts | - Request a public decryption
  • Request a user decryption
  • Request a delegated user decryption | | GatewayConfig | Administer configuration settings | - Register KMS nodes, coprocessors and host chains.
  • Update KMS nodes, coprocessors and host chains. | | InputVerification | Verify an input's zero-knowledge proof of knowledge (ZKPoK) | - Verify a ZKPoK
  • Reject a ZKPoK | | KMSGeneration | Orchestrate KMS-related materials | - Trigger generation of FHE keys
  • Trigger generation of CRS | | ProtocolPayment | Orchestrate protocol payments | - Define operation prices
  • Transfer protocol fees to FeesSenderToBurner contract fees | | PauserSet | Administer pauser role | - Register, remove and swap pauser addresses |

Getting started

Documentation can be found here.

Support

<a target="_blank" href="https://community.zama.ai"> <picture> <source media="(prefers-color-scheme: dark)" srcset="../docs/.gitbook/assets/support-banner-dark.png"> <source media="(prefers-color-scheme: light)" srcset="../docs/.gitbook/assets/support-banner-light.png"> </picture> </a>

🌟 If you find this project helpful or interesting, please consider giving it a star on GitHub! Your support helps to grow the community and motivates further development.