package octez-l2-libs

  1. Overview
  2. Docs
Octez layer2 libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

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

Module Commitment.V1Source

Sourcetype 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.