Architecture
This document covers the general aspects of Multi-chain architecture.
Last updated
This document covers the general aspects of Multi-chain architecture.
Last updated
Blockspace is an abstract space where blocks are finalized and executed. It is a crucial concept necessary for building decentralized systems and a cornerstone of blockchain existence. From the perspective of applications using blockchain, it enables continuous operation.
Ethereum was the first blockchain to provide Blockspace. It introduced the concept of gas metering, where the resources available within a Blockspace are limited based on the usage of the blockchain's virtual machine and blockchain resources. Building upon this, various blockchain protocols using Blockspace emerged (e.g. Polkadot, Solana), each with its unique features.
Blockspace parallelly executes multiple blocks generated from different blockchains (e.g. infrastructure blockchains or smart contracts), much like a multi-threaded approach resembling modern computer CPUs. The core of this is the Execution Core, capable of executing one block per core (Polkadot is developing Agile Core Time, allowing one core to be split into several). Validators in InfraBlockchain form shared security, providing Blockspace and serving as service providers offering consistent quality Blockspace.
For InfraBlockchain, an enterprise blockchain for institutions and public agencies, providing secure Blockspace is essential, and there exists a Blockspace allocation mechanism for this purpose.
InfraRelayChain is the central element of InfraBlockchain focusing on interoperability between different blockchains, scalability, and security through shared security. Its main role is to enable seamless connections between different blockchains. Thus, basic functions such as executing smart contracts or token transfers are delegated to Parachains, working with minimal functionality (e.g. Parachain block verification) for fundamental operations.
Parachain is a blockchain specialized for specific services (e.g. DID, STO) and gets its name from being a "chain" parallel to other chains in the Relay Chain. Parachains are generally blockchains, but they can take other forms (e.g. smart contracts). Parachains have the following characteristics:
State Transition Machine: Parachains are determinist**ic state machines with individual states.
Collator: Collators collect transactions from various Parachain nodes, create blocks, and deliver them to Relay Chain nodes. Collators act as full nodes for Parachains and perform the role of light nodes for Relay Chain.
Each Parachain has a unique logic called the State Transition Function capable of changing states. These functions are stored in WebAssembly(WASM) format on the InfraRelayChain. Thus, all Parachains connected to the Relay Chain are verified by Relay Chain validators.
Parachains submit a special block called Proof-of-Validity(PoV) for each state change in the form of a block. Relay Chain validators verify this PoV by comparing the final value obtained by executing the block using the Parachain's state transition function with the value provided by the Parachain. The maximum size for the PoV that InfraRelayChain can receive is currently 5MB.
Header
Header of the Parachain block
Extrinsics
State transition functions of the Parachain block
Storage Proof
List of storage changes during state transition
The most significant advantage of becoming a Parachain is Shared Security. Each Parachain can ensure block creation and finalization safety without independently configuring validators, thanks to Relay Chain validators. This allows Parachains to focus solely on business logic tailored to each service without worrying about sensitive elements.
The goal of the Parachain protocol is to perform processes iteratively in parallel, from Parachain block creation to inclusion in the Relay Chain and approval. This protocol maintains strong security while efficiently operating Parachains. Roles in the Parachain protocol are divided into:
Validator: Validators verify the PoV received from the Parachain and ensure availability for a certain period.
Collator: Collators create PoV and deliver it to validators.
The Parachain protocol can be summarized into two main stages:
Inclusion Pipeline: 1) Collators send blocks, 2) Validators verify them, 3) If they receive a sufficient number of valid blocks, they 4) back them, and the Relay Chain 5) includes them. However, this stage is not fully approved (pending approval).
Approval Process: After the inclusion stage, randomly selected Relay Chain validators who did not participate in the process validate the Parachain block. Once approved (approved), the Parachain block is finalized.