package tezos-dal-node-lib

  1. Overview
  2. Docs
Tezos: `tezos-dal-node` library

Install

Dune Dependency

Authors

Maintainers

Sources

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

doc/tezos-dal-node-lib.gossipsub/Tezos_dal_node_lib_gossipsub/Gossipsub/index.html

Module Tezos_dal_node_lib_gossipsub.GossipsubSource

This module exposes the instantiations of the Gossipsub and Octez-p2p libraries to be used by the DAL node to connect to and exchange data with peers.

Below, we expose the main types needed for the integration with the existing DAL node alongside their encodings.

Sourcetype message_id = Gs_interface.message_id = {
  1. commitment : Tezos_crypto_dal.Cryptobox.Commitment.t;
  2. level : int32;
  3. slot_index : int;
  4. shard_index : int;
  5. pkh : Tezos_crypto.Signature.Public_key_hash.t;
}
Sourceval topic_encoding : topic Tezos_base.TzPervasives.Data_encoding.t
Sourceval message_id_encoding : message_id Tezos_base.TzPervasives.Data_encoding.t
Sourceval message_encoding : message Tezos_base.TzPervasives.Data_encoding.t
Sourcemodule Worker : sig ... end

The worker module exposes instantiation of the Gossipsub worker functor, alongside the config used to instantiate the functor and the default values of the GS parameters.

Sourcemodule Transport_layer : sig ... end

The transport layer module exposes the needed primitives, interface and default parameters for the instantiation of the Octez-p2p library.

Sourcemodule Transport_layer_hooks : sig ... end

This module implements the list of hooks that allow interconnecting the Gossipsub worker with the transport layer. They are exposed via the Transport_layer_hooks.activate function below.

OCaml

Innovation. Community. Security.