package tezos-protocol-015-PtLimaPt
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/Sc_rollup_commitment_repr/index.html
Module Tezos_raw_protocol_015_PtLimaPt.Sc_rollup_commitment_repr
Source
A commitment represents a claim about the state of the Inbox and PVM at some Inbox level.
Versioning, see Sc_rollup_data_version_sig.S
for more information.
include module type of V1 with type t = V1.t
type t = V1.t = {
compressed_state : Sc_rollup_repr.State_hash.t;
inbox_level : Raw_level_repr.t;
predecessor : Hash.t;
number_of_ticks : Sc_rollup_repr.Number_of_ticks.t;
}
val genesis_commitment :
origination_level:Raw_level_repr.t ->
genesis_state_hash:Sc_rollup_repr.State_hash.t ->
t
genesis_commitment ~origination_level ~genesis_state_hash
is the commitment that the protocol "publish" and "cement" when originating a new rollup. Each rollup have a different genesis_commitment
because the compressed_state
is computed after the boot sector is set. It has the following values:
compressed_state
=genesis_state_hash
inbox_level
=origination_level
predecessor
=Hash.zero
number_of_messages
=Sc_rollup_repr.Number_of_messages.min_value
number_of_ticks
=Sc_rollup_repr.Number_of_ticks.min_value
where Sc_rollup_repr.Number_of_messages.min_value
and Sc_rollup_repr.Number_of_ticks.min_value
are equal to zero
.
See Sc_rollup_storage.originate
for the usage.
The genesis of a rollup is characterized by the Tezos level of the rollup origination, and the hash of the commitment computed by the protocol to specialize the PVM initial state with the provided boot sector.
val genesis_info_encoding :
genesis_info Tezos_protocol_environment_015_PtLimaPt.Data_encoding.t