Skip to content

Commit

Permalink
Updated doc md
Browse files Browse the repository at this point in the history
  • Loading branch information
rpanic committed Nov 29, 2023
1 parent 2211d3e commit 873726d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/protocol/src/prover/block/Block-hooks-network-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ provided from the outside and follows rules that somehow rely on verification on
In order to transition between sub-states intra-batch, we have a *from* and a *to* network state that are hashed and encoded inside the proofs public input.

To maintain flexibility, network state parameters will be supplied by the sequencer and the full state will then be produced in-circuit.

# Hooks

We implement two different types of hooks

`beforeBundle()`
`afterBundle()`

Currently, they receive as parameters:
- The current NetworkState
- THe current state of the blockprover including stateRoot and transactionsHash

0 comments on commit 873726d

Please sign in to comment.