โ๏ธGelios Architecture
Last updated
Last updated
The Aggregator plays a pivotal role in Gelios' processing layer, serving as the critical intermediary between the zk-Validium framework and the verifier contract on the base blockchain. This component is tasked with several key responsibilities that are vital for the integrity and efficiency of the transaction processing system:
- Batch Consolidation: The aggregator compiles transactions into batches, optimizing the processing efficiency and readiness for proof generation.
- Proof Generation: It then generates cryptographic proofs for these batches, confirming the validity of transactions within the zk-Validium framework.
- Prover Input Preparation: The aggregator also prepares the necessary data for the Prover, ensuring accurate input for the cryptographic proof process.
When transactions are initiated via the Gelios interface, the sequencer springs into action, collecting transaction data, organizing them into blocks, and securely batching them while recursively computing hash values. This process culminates in the creation of a batch hash, representing a cryptographic digest of the transaction batch.
Following the hash generation, each Data Availability Committee (DAC) nodeโtasked with storing and ensuring the accessibility of off-chain dataโsigns each batch hash it processes. This signature, produced using the node's private key, can be verified through the corresponding public key, establishing the node's endorsement of the batch's integrity. The aggregation of these signatures, alongside the original batch hash, is a critical step. It consolidates the DAC nodes' approvals, facilitating a decentralized verification process that underpins the system's integrity and security.
The sequencer then submits these collected signatures and the batch hash to the Polygon chain for validation. A specially designed multi-signature (multi-sig) smart contract on Polygon acts as the gatekeeper, verifying the authenticity of the submitted data against the pre-stored signatures of DAC members.
Upon validating the batch hash and its associated signaturesโthereby confirming sufficient DAC approvalโthe multi-sig smart contract greenlights the transaction batch. This approval signifies that the batch meets the network's stringent security and availability standards, allowing the transactions to be finalized on the Polygon chain.
This elaborate mechanism ensures that, despite off-chain processing, the transactions adhere to the network's rigorous requirements, maintaining the integrity and security of the blockchain ecosystem.