package tezos-dal-node-services

  1. Overview
  2. Docs

A topic is defined by a public key hash of an attester and a slot index.

  • A slot producer tracks the topic associated to a given slot index for all the public key-hashes;
  • The attester tracks its own public key hash for all the slot indices;
  • A slot consumer tracks topics associated to a given slot index and enough public key-hashes so that the number of covered shards is enough to recover the slot data.
type t = {
  1. slot_index : int;
  2. pkh : Tezos_base.TzPervasives.Signature.Public_key_hash.t;
}

Definition of a topic used for gossipsub.

include Tezos_base.TzPervasives.PRINTABLE with type t := t
val pp : Stdlib.Format.formatter -> t -> unit
include Tezos_base.TzPervasives.COMPARABLE with type t := t
val (=) : t -> t -> bool

x = y iff compare x y = 0

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

x <> y iff compare x y <> 0

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

x < y iff compare x y < 0

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

x <= y iff compare x y <= 0

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

x >= y iff compare x y >= 0

val (>) : t -> t -> bool

x > y iff compare x y > 0

val compare : t -> t -> int

compare an alias for the functor parameter's compare function

val equal : t -> t -> bool

equal x y iff compare x y = 0

val max : t -> t -> t

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

val min : t -> t -> t

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

module Set : Tezos_base.TzPervasives.Set.S with type elt = t
module Map : Tezos_base.TzPervasives.Map.S with type key = t
OCaml

Innovation. Community. Security.