Skip to content

Commit 14d798d

Browse files
authored
Update block-structure.adoc
1 parent eaa2f98 commit 14d798d

File tree

1 file changed

+6
-7
lines changed
  • components/Starknet/modules/architecture-and-concepts/pages/network-architecture

1 file changed

+6
-7
lines changed

components/Starknet/modules/architecture-and-concepts/pages/network-architecture/block-structure.adoc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
[id="block_structure"]
2-
= Block structure
2+
= Blocks
33

4-
== Introduction
4+
== Overview
55

6-
A Starknet block is a list of transactions and a block header that contains the following fields:
6+
A Starknet block is a list of transactions and a block header that contains xref:block_header_fields[multiple fields], including the xref:block_hash[hash of the previous block] and a xref:state_diff_commitment[commitment to their state diff], as well as xref:transactions_events_and_receipts_commitments[commitments to the transactions, events, and receipts] it includes.
7+
8+
== Block header fields
79

810
[%autowidth]
911
|===
@@ -45,7 +47,6 @@ A Starknet block is a list of transactions and a block header that contains the
4547

4648
|===
4749

48-
[#block_hash]
4950
== Block hash
5051

5152
A block hash is defined by:
@@ -95,7 +96,6 @@ where `h` is the xref:../../cryptography.adoc#poseidon-hash[Poseidon hash functi
9596
For a reference implementation, see link:https://github.com/starkware-libs/sequencer/blob/bb361ec67396660d5468fd088171913e11482708/crates/starknet_api/src/block_hash/block_hash_calculator.rs#L68[ `block_hash_calculator.rs`] in the Starknet sequencer's GitHub repository
9697
====
9798

98-
[#state_diff_hash]
9999
== State diff commitment
100100

101101
The state diff commitment is defined by:
@@ -124,7 +124,6 @@ Where:
124124
- `1` and `0` are placeholders that may be used in the future
125125
- `c~i~,k~i,1~, v~i,1~, ... , k~i,m^i^~,v~i,m^i^~` are `m^i^` updates `(k~i,1~, v~i,1~), ... ,(k~i,m^i^~, v~i,m^i^~)` to contract addresses `c~i~`
126126

127-
[#transactions_events_receipts_commitments]
128127
== Transactions, events, and receipts commitments
129128
The commitment to transactions, the commitment to events and the commitment to receipts are all roots of height-64 binary Merkle Patricia tries where the leaf at index `i` corresponds to:
130129

@@ -177,4 +176,4 @@ h(
177176
n,
178177
from~1~, to~1~, h(len(payload~1~) || payload~1~), ... , from~n~, to~n~, h(len(payload~n~) || payload~n~)
179178
)
180-
----
179+
----

0 commit comments

Comments
 (0)