Dal_operations_repr.Publish_slot_headertype t = {slot_index : Dal_slot_index_repr.t;commitment : Dal_slot_repr.Commitment.t;commitment_proof : Dal_slot_repr.Commitment_proof.t;}A "publish slot header" operation contains
slot_index which is the slot index associated with the commitment.commitment which is a commitment to the slot data published onto the DALcommitment_proof which aims to prove that the size of the slot data does not exceed a limit set by the protocol.val encoding : t Mavryk_protocol_environment_001_PtAtLas.Data_encoding.tval pp : Mavryk_protocol_environment_001_PtAtLas.Format.formatter -> t -> unitval slot_header :
cryptobox:Mavryk_protocol_environment_001_PtAtLas.Dal.t ->
number_of_slots:int ->
current_level:Raw_level_repr.t ->
t ->
Dal_slot_repr.Header.t
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresultslot_header ~cryptobox ~number_of_slots ~current_level
operation constructs a valid slot header. This function can fail in the following cases:
published_level is not equal to current_levelcommitment_proof is invalidslot_index is invalid