Skip to content

0glabs/0g-serving-contract

Repository files navigation

0G Serving Contract

Overview

The 0G Serving Network Contract connects the service providers and service users to facilitate the data retrieval process.

Serving Network Architecture

architecture

The 0G Serving Network Contract is a crucial component in the overall architecture of the 0G Serving Network (as shown in the diagram above). It validates settlement proofs, manages accounts, and handles service information. It stores essential variables during the service process, including account information, service details (such as name and URL), and consensus logic.

The contract have four files:

  • Serving.sol: Entry point for managing accounts and services. It also and handles the fee settlement process.
  • Account.sol: Manages user accounts and balances.
  • Service.sol: Handles service information, including registration, updates, and deletions.
  • BatchVerifier.sol: Implements the core logic for verifying settlement proofs. The code is generated by the ZK Settlement Server. It verifies the proofs and public inputs provided by the service provider. More details can be found in the Settlement document.

Documentation

If you're interested in becoming a Service Provider, please refer to 0G Compute Network Provider Guide for detailed guidelines and requirements.

If you wish to leverage provider services to develop your own projects, relevant resources are available in 0G Compute Network SDK Guide.

Support and Additional Resources

We want to do everything we can to help you be successful while working on your contribution and projects. Here you'll find various resources and communities that may help you complete a project or contribute to 0G.

Communities

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published