Skip to content

Commit 7a7ce31

Browse files
committed
Update zkEVM - fix rendering
2 parents ace7327 + 350a88c commit 7a7ce31

File tree

95 files changed

+2520
-664
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+2520
-664
lines changed

.github/assets/staging-taskdef.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
}],
5252
"volumes": [],
5353
"networkMode": "awsvpc",
54-
"memory": "1024",
55-
"cpu": "512",
54+
"memory": "512",
55+
"cpu": "256",
5656
"executionRoleArn": "arn:aws:iam::070528468658:role/docs-staging-TaskRole",
5757
"family": "docs-staging-taskdefinition",
5858
"taskRoleArn": "arn:aws:iam::070528468658:role/docs-staging-TaskRole",

.github/workflows/dev_deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Use Python
4040
uses: actions/setup-python@v4
4141
with:
42-
python-version: '3.11'
42+
python-version: '3.12'
4343

4444
- name: pip Install
4545
run: pip install -r requirements.txt --no-cache-dir

.github/workflows/prod_deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Use Python
4848
uses: actions/setup-python@v4
4949
with:
50-
python-version: '3.11'
50+
python-version: '3.12'
5151

5252
- name: pip Install
5353
run: pip install -r requirements.txt --no-cache-dir

.github/workflows/staging_deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Use Python
4141
uses: actions/setup-python@v4
4242
with:
43-
python-version: '3.11'
43+
python-version: '3.12'
4444

4545
- name: pip Install
4646
run: pip install -r requirements.txt --no-cache-dir

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.vscode/
1+
.vscode
22
.code
33
.idea
44
site/

.vscode/settings.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

CONTENT_DISCLAIMER.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Polygon Knowledge Layer third-party content disclaimer
2+
3+
The Polygon Knowledge Layer contains third-party content which includes websites, products, and services that are provided for informational purposes only.
4+
5+
Polygon Labs does not endorse, warrant, or make any representations regarding the accuracy, quality, reliability, or legality of any third-party websites, products, or services. If you decide to access any third-party content linked from the Polygon Knowledge Layer, you do so entirely at your own risk and subject to the terms and conditions of use for such websites. Polygon Labs reserves the right to withdraw such references and links without notice.
6+
7+
The Polygon Knowledge Layer serves as an industry public good and is made available under the MIT open source license. In addition, please view the official [Polygon Labs Terms of Use](https://polygon.technology/terms-of-use).

docs/_site_essentials/stylesheets/extra.css

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
1-
[data-md-color-scheme="slate"] {
2-
--md-footer-bg-color: black;
3-
4-
.md-footer,
5-
.md-footer__inner,
6-
.md-footer-meta {
7-
background-color: black;
8-
}
9-
}
10-
11-
[data-md-color-scheme="default"] {
12-
--md-footer-bg-color: white;
13-
--md-footer-fg-color: charcoal;
14-
--md-default-bg-color: white;
15-
--md-footer-fg-color--light: charcoal;
16-
--md-footer-fg-color--lighter: charcoal;
17-
18-
.md-footer,
19-
.md-footer__inner,
20-
.md-footer-meta {
21-
background-color: white;
22-
}
1+
.md-source-file__fact {
2+
display: none;
233
}
244

255
img.figure {

docs/_site_essentials/stylesheets/polygon-docs.webflow.css

Lines changed: 54 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,57 @@
11
:root {
22
--smoke-white: #f8f8f8;
33
--main-black: #110c22;
4-
--gray-light: #8d8a95;
4+
--gray-light: #110c22;
55
--white: white;
66
--gray: #4f4b5c;
77
--purple: #773ef0;
8+
9+
--md-text-font: Generalsans;
10+
--md-code-font: roboto mono;
11+
12+
--md-primary-bg-color: #f8f8f8;
13+
--md-primary-bg-color--light: white;
14+
--md-primary-fg-color: #110c22;
15+
}
16+
17+
.md-footer, .md-footer__inner, .md-footer-meta, .md-copyright__highlight, .md-social__link {
18+
background-color: white;
19+
color: var(--main-black) !important;
20+
}
21+
22+
.md-search__input {
23+
background-color: var(--smoke-white) !important;
24+
}
25+
26+
.md-nav>.md-nav__title {
27+
color: var(--purple) !important;
28+
background-color: var(--smoke-white) !important;
29+
margin: 0 !important;
30+
padding: 0 !important;
31+
}
32+
33+
.md-sidebar__scrollwrap, .md-sidebar__inner {
34+
background-color: var(--smoke-white) !important;
35+
margin: 0 !important;
36+
padding: 0 !important;
37+
}
38+
39+
.md-nav__link, .md-nav__link>.md-ellipsis {
40+
color: var(--main-black) !important;
41+
background-color: var(--smoke-white) !important;
42+
}
43+
44+
.md-nav__link>.md-nav__link--active {
45+
margin: 0 !important;
46+
padding: 0 !important;
47+
}
48+
49+
.md-nav--lifted>.md-nav__list>.md-nav__item--active>.md-nav__link {
50+
box-shadow: none;
51+
}
52+
53+
.md-nav--secondary .md-nav__title {
54+
box-shadow: none;
855
}
956

1057
h1 {
@@ -31,7 +78,7 @@ div.main h1 {
3178
margin-top: 0 !important;
3279
}
3380

34-
div.main h3 {
81+
div.main h2 {
3582
margin-top: 0 !important;
3683
}
3784

@@ -73,7 +120,7 @@ div.main div.flexbox a {
73120
}
74121

75122
div.main .nav-bar {
76-
background-color: var(--white);
123+
background-color: var(--smoke-white);
77124
border-bottom: 1px solid rgba(0, 0, 0, .12);
78125
padding: 10px 108px;
79126
}
@@ -116,10 +163,6 @@ div.main .nav-content {
116163
display: flex;
117164
}
118165

119-
div.main .section {
120-
121-
}
122-
123166
.hero-content-flex {
124167
grid-column-gap: 3rem;
125168
grid-row-gap: 3rem;
@@ -162,7 +205,7 @@ div.main .section {
162205
max-width: 400px;
163206
}
164207

165-
.hero-subext {
208+
.hero-subtext {
166209
color: var(--gray);
167210
font-weight: 500;
168211
}
@@ -230,6 +273,7 @@ div.main .section {
230273
}
231274

232275
.feature-card-heading {
276+
color: --purple;
233277
font-size: 18px;
234278
font-weight: 600;
235279
}
@@ -510,7 +554,7 @@ div.main .section {
510554

511555
.nav-menu {
512556
width: 90vw;
513-
background-color: var(--white);
557+
background-color: var(--smoke-white);
514558
flex-direction: column;
515559
padding: 80px 24px 24px;
516560
}
@@ -597,7 +641,7 @@ div.main .section {
597641

598642
.nav-menu-btn.w--open {
599643
z-index: 5;
600-
background-color: var(--white);
644+
background-color: var(--smoke-white);
601645
}
602646

603647
.menu-icon {
@@ -750,37 +794,4 @@ div.main .section {
750794
.nav-brand.w--current {
751795
padding-left: 0;
752796
}
753-
}
754-
755-
756-
@font-face {
757-
font-family: 'Generalsans';
758-
src: url('../fonts/GeneralSans-Semibold.woff2') format('woff2');
759-
font-weight: 600;
760-
font-style: normal;
761-
font-display: swap;
762-
}
763-
764-
@font-face {
765-
font-family: 'Generalsans';
766-
src: url('../fonts/GeneralSans-Medium.woff2') format('woff2');
767-
font-weight: 500;
768-
font-style: normal;
769-
font-display: swap;
770-
}
771-
772-
@font-face {
773-
font-family: 'Generalsans';
774-
src: url('../fonts/GeneralSans-Bold.woff2') format('woff2');
775-
font-weight: 700;
776-
font-style: normal;
777-
font-display: swap;
778-
}
779-
780-
@font-face {
781-
font-family: 'Generalsans';
782-
src: url('../fonts/GeneralSans-Regular.woff2') format('woff2');
783-
font-weight: 400;
784-
font-style: normal;
785-
font-display: swap;
786797
}

docs/cdk/architecture/dac.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## Data availability committee (DAC)
2+
3+
Polygon's CDK validium has an optional DAC.
4+
5+
A DAC is an off-chain network of nodes that implements a data storage layer in a modular chain architecture like CDK. Some advantages are:
6+
7+
- **Lower transaction fees**: Reduced computational requirements lead to lower fees and faster finality on the main network.
8+
- **Privacy and security**: The DAC stores secure and private transaction data.
9+
- **Trustless**: Data owners do not have to trust the blockchain operator.
10+
- **Scalable**: Decoupling data storage from the main chain supports more scalable networks.
11+
12+
DACs store the data required to reconstruct the state of the blockchain and make that data accessible so that, if the main blockchain network goes down, users can still access their assets and data.
13+
14+
Setting up a DAC can be costly and therefore DACs mostly support Enterprise use cases which require cheap and fast transactions with a private and secure data layer.
15+
16+
The CDK validium DAC is a secure consortium of nodes that ensures off-chain data access.
17+
18+
## CDK validium DAC data flow
19+
20+
![CDK validium data availability dataflow](../../img/cdk/cdk-val-dac-02.png)
21+
22+
The DAC works together with the sequencer to control the flow of data. The process can be broken down as follows:
23+
24+
1. **Batch formation**: The sequencer collects user transactions and organizes them into batches.
25+
26+
2. **Batch authentication**: Once the batches are assembled, they are authenticated. The sequencer forwards the batch data and its corresponding hash to the DAC.
27+
28+
3. **Data validation and storage**: The DAC nodes independently validate the batch data. Once validated, the hash is stored in each node's local database for future reference.
29+
30+
4. **Signature generation**: Each DAC node generates a signature for the batch hash. This serves as an endorsement of the batch's integrity and authenticity.
31+
32+
5. **Communication with Ethereum**: The sequencer collects the DAC members' signatures and the original batch hash and submits them to the Ethereum network for verification.
33+
34+
6. **Verification on Ethereum**: A designated smart contract on Ethereum verifies the submitted signatures against a list of valid DAC members and confirms that sufficient approval has been provided for the batch hash.
35+
36+
7. **Final settlement with zero-knowledge proof**: The aggregator prepares a proof for the batch via the prover and submits it to Ethereum. This proof confirms the validity of the batch's transactions without revealing their details. The chain state updates on Ethereum.

0 commit comments

Comments
 (0)