package octez-l2-libs

  1. Overview
  2. Docs
Octez layer2 libraries

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

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

Module Octez_smart_rollup.CommitmentSource

Sourcemodule V1 : sig ... end
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 t = V1.t
Sourcetype t = V1.t = {
  1. compressed_state : State_hash.t;
  2. inbox_level : int32;
  3. predecessor : Hash.t;
  4. number_of_ticks : int64;
}

Type of smart rollup commitments. See Protocol.Sc_rollup_commitment_repr.t.

Sourceval pp : Format.formatter -> t -> unit

Pretty printing protocol agnostic commitments.

Sourceval encoding : t Tezos_base.TzPervasives.Data_encoding.t

Encoding for commitments.

Sourceval hash : t -> Hash.t

Hashing a commitment.

Sourceval genesis_commitment : origination_level:int32 -> genesis_state_hash:State_hash.t -> t

genesis_commitment ~origination_level ~genesis_state_hash is the commitment that is published when originating a new rollup. See Protocol.Sc_rollup_commitment_repr.genesis_commitment.

OCaml

Innovation. Community. Security.