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: versioned_docs/version-2.0.0/concepts/serialization/structures.md
+10-8
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Account {#serialization-standard-account}
4
4
5
-
An Account is a structure that represented a user on a legacy Casper network. Alongside the Condor protocol release, `Accounts` were replaced with `AddressableEntities` of the type `Account`. The account structure consists of the following fields:
5
+
An Account is a structure that represented a user on a legacy Casper network. Alongside the Casper 2.0 protocol release, `Accounts` were replaced with `AddressableEntities` of the type `Account`. The account structure consists of the following fields:
6
6
7
7
-[`account_hash`](./types.md#account-hash)
8
8
@@ -47,10 +47,12 @@ To byte-serialize a `Block` you first need to serialize it's binary prefix and t
47
47
48
48
## BlockV1 {#block-v1}
49
49
50
-
This type encapsulates block data that used to be produced in versions of the nodes prior to 2.0.
51
-
This type represents a historical block that was produced prior to 2.0
52
-
Each block has a globally unique ID, achieved by hashing the contents of the block.
53
-
Each block points to its parent. An exception is the first block, which has no parent.
50
+
This type:
51
+
* encapsulates block data that used to be produced in versions of the nodes prior to 2.0.
52
+
* represents a historical block that was produced prior to 2.0
53
+
Each block:
54
+
* has a globally unique ID, achieved by hashing the contents of the block.
55
+
* points to its parent. An exception is the first block, which has no parent.
54
56
55
57
A block is structurally defined as follows:
56
58
@@ -97,7 +99,7 @@ Note that `EraEndV1` is an optional field. Thus the above scheme only applies if
97
99
98
100
### BlockBodyV1 {#blockbodyV1}
99
101
100
-
The body portion of a block, prior to the Condor upgrade, is structurally defined as:
102
+
The body portion of a block, prior to the Casper 2.0 upgrade, is structurally defined as:
101
103
102
104
-`proposer`: The PublicKey which proposed this block.
103
105
-`deploy_hashes`: Is a vector of hex-encoded hashes identifying Deploys included in this block.
@@ -134,7 +136,7 @@ The header portion of a block, structurally, is defined as follows:
134
136
-`body_hash` the hash of the block body. It serializes to the byte representation of the body hash. The serialized buffer of the `body_hash` is 32 bytes long.
135
137
-`random_bit` is a boolean needed for initializing a future era. It is serialized as a single byte; true maps to 1, while false maps to 0.
136
138
-`accumulated_seed` is a seed needed for initializing a future era. It serializes to the byte representation of the parent Hash. The serialized buffer of the `accumulated_hash` is 32 bytes long.
137
-
-`era_end` contains equivocation and reward information to be included in the terminal finalized block. It is an optional field. Thus if the field is set as `None`, it serializes to _0_. The serialization of the other case is described in the `EraEndV1`.
139
+
-`era_end` contains equivocation and reward information to be included in the terminal finalized block. It is an optional field. Thus if the field is set as `None`, it serializes to _0_. The serialization of the other case is described in the `EraEndV2`.
138
140
-`timestamp` The timestamp from when the block was proposed. It serializes as a single `u64` value. The serialization of a `u64` value is described in the CLValues section.
139
141
-`era_id` Era ID in which this block was created. It serializes as a single `u64` value.
140
142
-`height` The height of this block, i.e., the number of ancestors. It serializes as a single `u64` value.
@@ -145,7 +147,7 @@ The header portion of a block, structurally, is defined as follows:
145
147
146
148
### EraEndV2 {#eraendV2}
147
149
148
-
`EraEndV1` as represented within the block header, is a struct containing four fields.
150
+
`EraEndV2` as represented within the block header, is a struct containing four fields.
149
151
150
152
-`equivocators`: A vector of `PublicKey` listing equivocators for the era.
151
153
-`inactive_validators`: A list of inactive validators for the era.
0 commit comments