The Arbitrum 0G integration allows developers to deploy an Orbit Chain using 0G (Zero Gravity) for data availability. This integration marks the first AI-focused external integration to the Arbitrum Orbit protocol layer, offering an alternative to Arbitrum AnyTrust for high-performance data availability.
- DA Provider Implementation: Implements the DataAvailabilityProvider interface for 0G DA.
- Preimage Oracle Implementation: Supports fraud proofs by populating the preimage mapping with 0G hashes.
- 0G Integration: Ensures data integrity and availability through 0G's consensus mechanism.
The core logic for posting and retrieving data is implemented in the zerogravity.go file. Key features include:
- ZgDA struct: Manages the connection to the 0G disperser client.
- Store method: Handles data storage on 0G, breaking large blobs into smaller chunks if necessary.
- Read method: Retrieves data from 0G using the provided blob parameters.