package octez-libs

  1. Overview
  2. Docs
A package that contains multiple base libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/octez-libs.base/Tezos_base/Block_header/index.html

Module Tezos_base.Block_headerSource

Sourcetype shell_header = {
  1. level : Int32.t;
    (*

    Height of the block, from the genesis block.

    *)
  2. proto_level : int;
    (*

    Number (uint8) of protocol changes since genesis modulo 256.

    *)
  3. predecessor : Tezos_crypto.Hashed.Block_hash.t;
    (*

    Hash of the preceding block.

    *)
  4. timestamp : Time.Protocol.t;
    (*

    Timestamp at which the block is claimed to have been created.

    *)
  5. validation_passes : int;
    (*

    Number (uint8) of validation passes (also number of lists of operations).

    *)
  6. operations_hash : Tezos_crypto.Hashed.Operation_list_list_hash.t;
    (*

    Hash of the list of lists (actually root hashes of merkle trees) of operations included in the block. There is one list of operations per validation pass.

    *)
  7. fitness : Fitness.t;
    (*

    A sequence of sequences of unsigned bytes, ordered by length and then lexicographically. It represents the claimed fitness of the chain ending in this block.

    *)
  8. context : Tezos_crypto.Hashed.Context_hash.t;
    (*

    Hash of the state of the context either before or after application of this block depending on the protocol environment's expected_context_hash value.

    *)
}
Sourceval shell_header_encoding : shell_header Data_encoding.t
Sourcetype t = {
  1. shell : shell_header;
  2. protocol_data : Bytes.t;
}
include S.HASHABLE with type t := t and type hash := Tezos_crypto.Hashed.Block_hash.t
include S.T with type t := t
include Tezos_stdlib.Compare.S with type t := t
Sourceval (=) : t -> t -> bool

x = y iff compare x y = 0

Sourceval (<>) : t -> t -> bool

x <> y iff compare x y <> 0

Sourceval (<) : t -> t -> bool

x < y iff compare x y < 0

Sourceval (<=) : t -> t -> bool

x <= y iff compare x y <= 0

Sourceval (>=) : t -> t -> bool

x >= y iff compare x y >= 0

Sourceval (>) : t -> t -> bool

x > y iff compare x y > 0

Sourceval compare : t -> t -> int

compare an alias for the functor parameter's compare function

Sourceval equal : t -> t -> bool

equal x y iff compare x y = 0

Sourceval max : t -> t -> t

max x y is x if x >= y otherwise it is y

Sourceval min : t -> t -> t

min x y is x if x <= y otherwise it is y

Sourceval pp : Format.formatter -> t -> unit
Sourceval encoding : t Data_encoding.t
Sourceval to_bytes : t -> Bytes.t
Sourceval of_bytes : Bytes.t -> t option
Sourceval of_bytes_exn : Bytes.t -> t
Sourceval to_b58check : t -> string
Sourceval of_b58check : string -> t option
Sourceval bounded_encoding : ?max_size:int -> unit -> t Data_encoding.t
Sourceval get_forced_protocol_upgrade : user_activated_upgrades:User_activated.upgrades -> level:Int32.t -> Tezos_crypto.Hashed.Protocol_hash.t option
Sourceval get_voted_protocol_overrides : user_activated_protocol_overrides:User_activated.protocol_overrides -> Tezos_crypto.Hashed.Protocol_hash.t -> Tezos_crypto.Hashed.Protocol_hash.t option
OCaml

Innovation. Community. Security.