package octez-l2-libs

  1. Overview
  2. Docs
Octez layer2 libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-l2-libs.smart-rollup/Octez_smart_rollup/Dal/Slot_header/index.html

Module Dal.Slot_headerSource

Sourcemodule V1 : sig ... end

A slot header.

include Versioned_data.S with type t = V1.t
Sourcetype versioned

The type of versioned values, including the one that is currently used and the previous ones.

Sourceval versioned_encoding : versioned Tezos_base.TzPervasives.Data_encoding.t

Encoding for versioned values, corresponds to the one defined by the protocol.

Sourceval of_versioned : versioned -> V1.t

Conversion to the currently used representation. In practice this function must provide ways to translate values of older versions to the latest one.

Sourceval to_versioned : V1.t -> versioned

Wrapping a current value as a versioned one.

include module type of V1 with type id = V1.id and type t = V1.t
Sourcetype id = V1.id = {
  1. published_level : int32;
  2. index : Slot_index.t;
}
Sourcetype t = V1.t = {
  1. id : id;
  2. commitment : Commitment.t;
}
Sourceval encoding : t Tezos_base.TzPervasives.Data_encoding.t

Encoding for V1 matches Protocol.Alpha_context.Dal.Slot.Header.encoding.

OCaml

Innovation. Community. Security.