Network Participants
Explains the roles of collators and validators.
Last updated
Explains the roles of collators and validators.
Last updated
Introduction to key participants in the Multi-Chain Infrastructure Blockchain Ecosystem:
Validators: Validators play a crucial role in the multi-chain infrastructure blockchain ecosystem by generating blocks and establishing shared security. They protect both the Relay Chain and parachains. Validators are responsible for creating blocks, forming shared security to safeguard the Relay Chain, and ensuring the protection of parachains.
Collators: Collators perform the essential function of generating parachain blocks and delivering them to validators. They play a crucial role in the creation and submission of parachain blocks to validators, contributing to the overall functionality of the multi-chain infrastructure blockchain ecosystem.
Validators verify proofs from collators (para-validators) and protect Relay Chain and parachains through consensus with other validators. Validators play a crucial role in adding new blocks to Relay Chain(block producers), ensuring the inclusion of all parachain blocks.
Validators in the InfraBlockchain ensure the overall network's security through shared security, enabling the exchange of cross-chain messages using XCM (e.g. token transfers, transaction calls for specific pallets). Validators guarantee that each parachain follows its unique rules and can exchange messages securely among parachains in a trusted environment.
Para-Validators participate in the Availability and Validity protocol's parachain phase, submitting a candidate receipt to the Relay Chain. This process enables block producers to include information about parachain blocks in the Relay Chain through the availability and validity verification process.
Para-Validators operate as a group and are chosen by the runtime to validate parachain blocks for all parachains connected to the Relay Chain every epoch. The selected Para-Validators participate in validation as one of the randomly chosen InfraBlockchain validator for each epoch, forming the Para-Validator pool.
Para-Validators verify the validity of the information included in a series of assigned parachain blocks. They receive parachain block candidates and their proof of validity Proof-of-Validity(PoV) from collators.
Para-Validators perform the initial validity check on the block candidate. A candidate that passes the validation with sufficient signatures is considered backable.
There are validators who participate in the consensus mechanism to produce Relay Chain blocks based on the validity of other validators. These validators, known as block producers, are selected by the consensus engine (e.g. BABE, Aura) and can record at most one backable candidate for each parachain to be included in the Relay Chain. A backable candidate included in the Relay Chain is considered backed in the fork of that Relay Chain.
In Relay Chain blocks, the block producer only includes candidate parachain blocks with parent candidate data (Candidate Receipt) from the previous Relay Chain block. This ensures that parachains follow a valid chain. Additionally, the block author includes candidate parachain blocks with erasure-coding chunks (for availability) to facilitate the system's availability and validity checks in the next round.
Validators also contribute to the so-called Availability distribution. Even after being backed in the fork of the Relay Chain, a candidate's availability is still pending, and it is not fully included as part of the parachain (temporary inclusion). Information about the candidate's availability is recorded in the next Relay Chain block. Only when sufficient information is available is the candidate considered a complete parachain block or parablock.
Validators also participate in the Approval process. Even if a parablock is available and considered part of the parachain, it remains in a pending approval state. Since para-validators are a small subset of all validators, there is a potential for dishonest behavior among the majority of para-validators assigned to a specific parachain.
Therefore, to avoid assigning more para-validators, which may potentially degrade the system's throughput, it is necessary to execute auxiliary verification of parablocks. If the verification fails, para-validators receive penalties and are excluded from the validator pool, suppressing misconduct. However, in case of successful performance, the para-validator receives legal fiat-based System Token rewards, including block rewards (including transaction fees) for their activity.
Finally, validators participate in the chain selection process within GRANDPA, ensuring that only available and valid blocks are included in the finalized Relay Chain.
Role of Collator Collators collect all transactions occurring in parachains from users and generate state transition proofs (PoV) for Relay Chain validators. Under normal circumstances, collators collect and execute transactions to create block candidates, proposing them to one or more validators along with PoV for inclusion in the parachain block.
Collators are similar to validators in other blockchains, but since InfraBlockchain Validators ensure security, collators can build service-specific blockchains without worrying about security separately. If a parachain block is not valid, it is rejected by the validators. Para-Validators assigned to each parachain verify the validity of submitted candidates and then collect and aggregate the validity from other para-validators. This process is called candidate backing. Para-Validators receive PoV associated with an arbitrary number of parachain block candidates from untrusted collators. A candidate is considered backable when at least 2/3 of the assigned validators have verified its validity.
Validators must successfully verify the following conditions in the following order:
The parachain candidate block should not exceed any parameters of the verification data.
The collator's signature must be valid.
Verify the parachain candidate block by executing the parachain runtime.
If the candidate block meets the specified criteria to be included in the Relay Chain block, the selected Relay Chain Block producer selects one backable candidate for each parachain to be included in the Relay Chain block (inclusion). The candidate block is considered backed. Furthermore, having more collators does not necessarily mean better or safer assumptions. Instead, having too many collators can slow down the network. The only malicious behavior a collator can exhibit is transaction censorship. To prevent censorship, a parachain only needs to ensure the presence of a neutral collator, and a majority is not strictly required. Theoretically, the censorship problem can be solved with just one honest collator.