You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: polkadot-protocol/architecture/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,11 @@ Explore Polkadot's architecture, including the relay chain, parachains, and syst
12
12
13
13
The following provides a brief overview of the role of each chain:
14
14
15
-
-[**Polkadot relay chain**](/polkadot-protocol/architecture/polkadot-chain/) - the central hub and main chain responsible for the overall security, consensus, and interoperability between all connected chains
15
+
-**[Polkadot relay chain](/polkadot-protocol/architecture/polkadot-chain/)**: The central hub and main chain responsible for the overall security, consensus, and interoperability between all connected chains.
16
16
17
-
-[**System chains**](/polkadot-protocol/architecture/system-chains/) - specialized chains that provide essential services to the ecosystem, like the Asset Hub, Bridge Hub, and Coretime chain
17
+
-**[System chains](/polkadot-protocol/architecture/system-chains/)**: Specialized chains that provide essential services to the ecosystem, like the Asset Hub, Bridge Hub, and Coretime chain.
18
18
19
-
-[**Parachains**](/polkadot-protocol/architecture/parachains/) - individual, specialized blockchains that run parallel to the relay chain and are connected to it
19
+
-**[Parachains](/polkadot-protocol/architecture/parachains/)**: Individual, specialized blockchains that run parallel to the relay chain and are connected to it.
20
20
21
21
Learn more about these components by checking out the articles in this section.
Copy file name to clipboardExpand all lines: polkadot-protocol/architecture/parachains/consensus.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,18 @@ Collators are responsible for sequencing end-user transactions into blocks and m
19
19
20
20
Key responsibilities include:
21
21
22
-
- **Transaction sequencing** - organizing transactions into [Proof of Validity (PoV)](https://wiki.polkadot.network/general/glossary/){target=\_blank} blocks
23
-
- **State management** - maintaining parachain states without burdening the relay chain validators
24
-
- **Consensus participation** - sending PoV blocks to relay chain validators for approval
22
+
- **Transaction sequencing**: Organizing transactions into [Proof of Validity (PoV)](https://wiki.polkadot.network/general/glossary/){target=\_blank} blocks.
23
+
- **State management**: Maintaining parachain states without burdening the relay chain validators.
24
+
- **Consensus participation**: Sending PoV blocks to relay chain validators for approval.
25
25
26
26
## Consensus and Validation
27
27
28
28
Parachain consensus operates in tandem with the relay chain, leveraging Nominated Proof of Stake (NPoS) for shared security. The process ensures parachain transactions achieve finality through the following steps:
2. **Submission to validator** - parablocks are submitted to a randomly selected subset of relay chain validators, known as paravalidators
32
-
3. **Validation of PoV Blocks** - paravalidators use the parachain’s state transition function (already available on the relay chain) to verify transaction validity
33
-
4. **Backing and inclusion** - if a sufficient number of positive validations are received, the parablock is backed and included via a para-header on the relay chain
30
+
1. **Packaging transactions**: Collators bundle transactions into PoV blocks (parablocks).
31
+
2. **Submission to validator**: Parablocks are submitted to a randomly selected subset of relay chain validators, known as paravalidators.
32
+
3. **Validation of PoV Blocks**: Paravalidators use the parachain’s state transition function (already available on the relay chain) to verify transaction validity.
33
+
4. **Backing and inclusion**: If a sufficient number of positive validations are received, the parablock is backed and included via a para-header on the relay chain.
34
34
35
35
The following sections describe the actions taking place during each stage of the process.
36
36
@@ -40,11 +40,11 @@ Polkadot achieves scalability through execution sharding, where each parachain o
40
40
41
41
The journey parachain transactions follow to reach consensus and finality can be described as follows:
42
42
43
-
- **Collators and parablocks:**
43
+
- Collators and parablocks:
44
44
45
-
- Collators, specialized nodes on parachains, package network transactions into Proof of Validity (PoV) blocks, also called parablocks
46
-
- These parablocks are sent to a subset of relay chain validators, known as paravalidators, for validation
47
-
- The parachain's state transition function (Wasm blob) is not re-sent, as it is already stored on the relay chain
45
+
- Collators, specialized nodes on parachains, package network transactions into Proof of Validity (PoV) blocks, also called parablocks.
46
+
- These parablocks are sent to a subset of relay chain validators, known as paravalidators, for validation.
47
+
- The parachain's state transition function (Wasm blob) is not re-sent, as it is already stored on the relay chain.
48
48
49
49
```mermaid
50
50
flowchart TB
@@ -66,17 +66,17 @@ flowchart TB
66
66
Parachain -->|Submit To| Relay
67
67
```
68
68
69
-
- **Validation by paravalidators:**
69
+
- Validation by paravalidators:
70
70
71
-
- Paravalidators are groups of approximately five relay chain validators, randomly assigned to parachains and shuffled every minute
72
-
- Each paravalidator downloads the parachain's Wasm blob and validates the parablock by ensuring all transactions comply with the parachain’s state transition rules
73
-
- Paravalidators sign positive or negative validation statements based on the block’s validity
71
+
- Paravalidators are groups of approximately five relay chain validators, randomly assigned to parachains and shuffled every minute.
72
+
- Each paravalidator downloads the parachain's Wasm blob and validates the parablock by ensuring all transactions comply with the parachain’s state transition rules.
73
+
- Paravalidators sign positive or negative validation statements based on the block’s validity.
74
74
75
-
- **Backing and approval:**
75
+
- Backing and approval:
76
76
77
-
- If a parablock receives sufficient positive validation statements, it is backed and included on the relay chain as a para-header
78
-
- An additional approval process resolves disputes. If a parablock contains invalid transactions, additional validators are tasked with verification
79
-
- Validators who back invalid parablocks are penalized through slashing, creating strong incentives for honest behavior
77
+
- If a parablock receives sufficient positive validation statements, it is backed and included on the relay chain as a para-header.
78
+
- An additional approval process resolves disputes. If a parablock contains invalid transactions, additional validators are tasked with verification.
79
+
- Validators who back invalid parablocks are penalized through slashing, creating strong incentives for honest behavior.
80
80
81
81
```mermaid
82
82
flowchart
@@ -113,4 +113,4 @@ It is important to understand that relay chain blocks do not store full parachai
Copy file name to clipboardExpand all lines: polkadot-protocol/architecture/polkadot-chain/elastic-scaling.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,14 @@ Elastic scaling enables parachains to process multiple blocks in parallel by uti
19
19
20
20
Consider a parachain that needs to process four consecutive parablocks. With traditional single-core allocation, the validation process follows a strictly sequential pattern. Each parablock undergoes a two-phase process on the relay chain:
21
21
22
-
1.**Backing phase** - validators create and distribute validity statements
23
-
2.**Inclusion phase** - the parablock is included in the relay chain after availability verification
22
+
1.**Backing phase**: Validators create and distribute validity statements.
23
+
2.**Inclusion phase**: The parablock is included in the relay chain after availability verification.
24
24
25
25
Throughout the following diagrams, specific notation is used to represent different components of the system:
- P1, P2, ... - parachain blocks that need validation and inclusion
29
-
- C1, C2, ... - cores on the relay chain
27
+
-**R1, R2, ...**: Relay chain blocks (produced at ~6-second intervals).
28
+
-**P1, P2, ...**: Parachain blocks that need validation and inclusion.
29
+
-**C1, C2, ...**: Cores on the relay chain.
30
30
31
31
In the single-core scenario (assuming a 6-second relay chain block time), processing four parablocks requires approximately 30 seconds:
32
32
@@ -84,33 +84,33 @@ sequenceDiagram
84
84
85
85
To help interpret the sequence diagrams above, note the following key elements:
86
86
87
-
- The horizontal axis represents time progression through relay chain blocks (R1-R5)
88
-
- Each colored rectangle shows processing on a specific core (C1 or C2)
89
-
- In the single-core scenario, all blocks must be processed sequentially on one core
90
-
- In the multi-core scenario, blocks are processed in parallel across multiple cores, reducing total time
87
+
- The horizontal axis represents time progression through relay chain blocks (R1-R5).
88
+
- Each colored rectangle shows processing on a specific core (C1 or C2).
89
+
- In the single-core scenario, all blocks must be processed sequentially on one core.
90
+
- In the multi-core scenario, blocks are processed in parallel across multiple cores, reducing total time.
91
91
92
92
The relay chain processes these multiple parablocks as independent validation units during the backing, availability, and approval phases. However, during inclusion, it verifies that their state roots align properly to maintain chain consistency.
93
93
94
94
From an implementation perspective:
95
95
96
-
-**Parachain side** - collators must increase their block production rate to utilize multiple cores fully
97
-
-**Validation process** - each core operates independently, but with coordinated state verification
98
-
-**Resource management** - cores are dynamically allocated based on parachain requirements
99
-
-**State consistency** - while backed and processed in parallel, the parablocks maintain sequential state transitions
96
+
-**Parachain side**: Collators must increase their block production rate to utilize multiple cores fully.
97
+
-**Validation process**: Each core operates independently, but with coordinated state verification.
98
+
-**Resource management**: Cores are dynamically allocated based on parachain requirements.
99
+
-**State consistency**: While backed and processed in parallel, the parablocks maintain sequential state transitions.
100
100
101
101
## Benefits of Elastic Scaling
102
102
103
-
-**Increased throughput** - multiple concurrent cores enable parachains to process transactions at multiples of their previous capacity. By allowing multiple parachain blocks to be validated within each relay chain block cycle, applications can achieve significantly higher transaction volumes
103
+
-**Increased throughput**: Multiple concurrent cores enable parachains to process transactions at multiples of their previous capacity. By allowing multiple parachain blocks to be validated within each relay chain block cycle, applications can achieve significantly higher transaction volumes.
104
104
105
-
-**Lower latency** - transaction finality improves substantially with multi-core processing. Parachains currently achieve 2-second latency with three cores, with projected improvements to 500ms using 12 cores, enabling near-real-time application responsiveness
105
+
-**Lower latency**: Transaction finality improves substantially with multi-core processing. Parachains currently achieve 2-second latency with three cores, with projected improvements to 500ms using 12 cores, enabling near-real-time application responsiveness.
106
106
107
-
-**Resource efficiency** - applications acquire computational resources precisely matched to their needs, eliminating wasteful over-provisioning. Coretime can be purchased at granular intervals (blocks, hours, days), creating cost-effective operations, particularly for applications with variable transaction patterns
107
+
-**Resource efficiency**: Applications acquire computational resources precisely matched to their needs, eliminating wasteful over-provisioning. Coretime can be purchased at granular intervals (blocks, hours, days), creating cost-effective operations, particularly for applications with variable transaction patterns.
108
108
109
-
-**Scalable growth** - new applications can launch with minimal initial resource commitment and scale dynamically as adoption increases. This eliminates the traditional paradox of either over-allocating resources (increasing costs) or under-allocating (degrading performance) during growth phases
109
+
-**Scalable growth**: New applications can launch with minimal initial resource commitment and scale dynamically as adoption increases. This eliminates the traditional paradox of either over-allocating resources (increasing costs) or under-allocating (degrading performance) during growth phases.
110
110
111
-
-**Workload distribution** - parachains intelligently distribute workloads across cores during peak demand periods and release resources when traffic subsides. Paired with secondary coretime markets, this ensures maximum resource utilization across the entire network ecosystem
111
+
-**Workload distribution**: Parachains intelligently distribute workloads across cores during peak demand periods and release resources when traffic subsides. Paired with secondary coretime markets, this ensures maximum resource utilization across the entire network ecosystem.
112
112
113
-
-**Reliable performance** - end-users experience reliable application performance regardless of network congestion levels. Applications maintain responsiveness even during traffic spikes, eliminating performance degradation that commonly impacts blockchain applications during high-demand periods
113
+
-**Reliable performance**: End-users experience reliable application performance regardless of network congestion levels. Applications maintain responsiveness even during traffic spikes, eliminating performance degradation that commonly impacts blockchain applications during high-demand periods.
0 commit comments