Skip to content

Commit 8009bc2

Browse files
author
Nadim Kobeissi
authored
Merge pull request 0xPolygon#53 from 0xPolygon/empieichO-docs-review
update - CDK intros done
2 parents a0efdf7 + d5f9979 commit 8009bc2

File tree

16 files changed

+74
-25
lines changed

16 files changed

+74
-25
lines changed

docs/cdk/concepts/dac.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The CDK validium DAC is a secure consortium of nodes that ensures off-chain data
2424

2525
## DAC data flow
2626

27-
![CDK validium DAC dataflow](../../img/cdk/zksupernets-dac.png)
27+
![CDK validium DAC dataflow](../../img/cdk/cdk-val-dac-02.png)
2828

2929
The DAC works together with the sequencer to control the flow of data. The process can be broken down as follows:
3030

docs/cdk/concepts/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
Welcome to the Concepts section.
1+
This section covers some of the basic concepts needed to understand the CDK setting, which is a platform designed to allow developers to choose between validium and zk-rollup architectures.
2+
3+
Concepts such as a rollup, a validium and data availability committee (DAC) are defined. Implications of off-chain data availability are briefly discussed.

docs/cdk/concepts/validium.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Validiums are blockchain scaling solutions that do not store transaction data.
1+
Validiums are blockchain scaling solutions that do not store transaction data on-chain.
22

33
!!! info "Recommended resource"
44
See Ethereum.org's detailed [description of validiums](https://ethereum.org/en/developers/docs/scaling/validium/).

docs/cdk/how-to/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
This introduction to the how to section is being written.
1+
This section describes how to manage policies pertaining to data access in the case of a Validium.
2+
3+
Validia store data off-chain, and with this option comes the need to manage both the data and access to the data. This is facilitated through policies that stipulate which addresses can have access to data. Lists of addresses, such as the Allowlist and Denylist, are therefore kept to exclude or include certain addresses to having access.
4+

docs/cdk/spec/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
This introduction to the specification section is being written.
1+
This section gives a comparison between a validium and a zk-rollup.
2+
3+
The main difference is the fact that a validium has a data availability layer whereas a zk-rollup does not. This difference alone is the reason for the substantially reduced gas fees for a validium compared to the zk-rollup.
4+
5+
However, with this off-chain data availability, there is a trade-off between gas fees and security. Unlike in the zk-rollup, where forced batches are activated, the validium suffers from the possibility for the sequencer to go offline or the DAC to collude among themselves to withold state data.
6+
7+
What remains common between the two architectures is the generation of proofs.

docs/img/cdk/cdk-val-dac-02.png

434 KB
Loading

docs/pos/architecture/index.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
# Architecture
22

3+
Due to the proof-of-stake consensus, Polygon PoS consists of a consensus layer called Heimdall and execution layer called Bor.
4+
5+
Nodes on Polygon are therefore designed with a two-layer implementation represented by Bor (the block producer layer) and Heimdall (the validator layer).
6+
7+
This section provides architectural details of Polygon PoS.
8+
9+
In particular, and on the execution client side, it delineates on snapshots and state syncing, network configurations, and frequently used commands when running PoS nodes.
10+
11+
On the consesus client side, one finds descriptions on how Heimdall handles; authentication of account addresses, management of validators' keys, management of gas limits, enhancement of transaction verifications, balance transfers, staking and general chain management.
12+
13+
<!--
314
<div class="flex-figure" markdown="1">
4-
<div class="flex-figure-left" markdown="1">
15+
<div class="flex-figure-left" markdown="1"> -->
516

6-
On Polygon, the node is designed with a two-layer implementation represented by Bor (the block producer layer) and Heimdall (the validator layer).
717

818
</div>
919
<div class="flex-figure-right">

docs/pos/concepts/index.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
This introductory page is currently being written. In the meantime, please review documentation existing under this section, which, in all likelihood, is also in a relatively early editorial state.
1+
This section covers basic concepts necessary in understanding a few more aspects about Polygon PoS. Specifically the network's native token MATIC and its proposed replacement POL, two Ethereum improvement proposals (EIP-1559 and EIP-4337) pertaining to gas estimations, transaction costs, as well as account abstraction.
2+
3+
The section contains an elaborate discussion on the proposed transition from MATIC to POL as the Polygon PoS's native token. The POL subsection defines the POL token and continues to present, in a question-and-answer (Q&A) format, all the information that users need to know about the proposed transition. A subsequent subsection defines what the MATIC token is, gives an example script to send MATIC tokens from one account to another, the three different ways to acquire MATIC tokens and finally how to obtain test MATIC tokens.
4+
5+
In the Transactions subsection is a brief discussion on the types of transactions, how legacy transaction format works, and ways in which different types of transactions can be sent.
6+

docs/pos/concepts/tokens/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
This introductory page is currently being written. In the meantime, please review documentation existing under this section, which, in all likelihood, is also in a relatively early editorial state.
1+
The Tokens subsection focuses on the proposed Polygon PoS's native token POL and the soon to be replaced native token MATIC.
2+
3+
The POL subsection defines the POL token and continues to present, in a question-and-answer (Q&A) format, all the information that users need to know about the proposed transition.
4+
5+
The subsequent MATIC subsection defines what the MATIC token is, gives an example script to send MATIC tokens from one account to another, the three different ways to acquire MATIC tokens and finally how to obtain test MATIC tokens.
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
This introductory page is currently being written. In the meantime, please review documentation existing under this section, which, in all likelihood, is also in a relatively early editorial state.
1+
2+
3+
The Transactions subsection provides information about the EIP-1559 as it applies to how gas estimations and costing of transations work on Polygon PoS. Further on, are discussions on new and old types of transaction formats and how they are processed in Polygon PoS.
4+
5+
Regarding account abstraction, the subsection contains a simplified overview of the different components of ERC-4337 and how these components work together. These are altogether; `UserOperation`, `Bundler`, `EntryPoint`, and `Contract Account`. Optional ERC-4337 components are `Paymasters` and `Aggregators`.
6+
7+
There is a extra subsection discussion several aspects of the so-called Meta-transactions. These are transactions that allow anyone to interact with the blockchain without requiring users to have tokens in order to pay for the network’s services.
8+

0 commit comments

Comments
 (0)