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: specs/_features/eip7594/das-core.md
+26-15Lines changed: 26 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@
8
8
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
9
9
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
10
10
11
+
-[Constants](#constants)
12
+
-[Misc](#misc)
11
13
-[Custom types](#custom-types)
12
14
-[Configuration](#configuration)
13
15
-[Data size](#data-size)
@@ -39,22 +41,33 @@
39
41
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
40
42
<!-- /TOC -->
41
43
44
+
## Constants
45
+
46
+
The following values are (non-configurable) constants used throughout the specification.
47
+
48
+
### Misc
49
+
50
+
| Name | Value |
51
+
| - | - |
52
+
|`UINT256_MAX`|`uint256(2**256 - 1)`|
53
+
42
54
## Custom types
43
55
44
56
We define the following Python custom types for type hinting and readability:
45
57
46
58
| Name | SSZ equivalent | Description |
47
59
| - | - | - |
48
60
|`DataColumn`|`List[Cell, MAX_BLOB_COMMITMENTS_PER_BLOCK]`| The data of each column in EIP-7594 |
49
-
|`ExtendedMatrix`|`List[Cell, MAX_BLOBS_PER_BLOCK * NUMBER_OF_COLUMNS]`| The full data of one-dimensional erasure coding extended blobs (in row major format) |
61
+
|`ExtendedMatrix`|`List[Cell, MAX_CELLS_IN_EXTENDED_MATRIX]`| The full data of one-dimensional erasure coding extended blobs (in row major format).|
50
62
51
63
## Configuration
52
64
53
65
### Data size
54
66
55
67
| Name | Value | Description |
56
68
| - | - | - |
57
-
|`NUMBER_OF_COLUMNS`|`uint64(FIELD_ELEMENTS_PER_EXT_BLOB // FIELD_ELEMENTS_PER_CELL)` (= 128) | Number of columns in the extended data matrix. |
69
+
|`NUMBER_OF_COLUMNS`|`uint64(CELLS_PER_EXT_BLOB)` (= 128) | Number of columns in the extended data matrix. |
70
+
|`MAX_CELLS_IN_EXTENDED_MATRIX`|`uint64(MAX_BLOBS_PER_BLOCK * NUMBER_OF_COLUMNS)` (= 768) | The data size of `ExtendedMatrix`. |
0 commit comments