package tezos-dal-node-lib
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/tezos-dal-node-lib.gossipsub/Tezos_dal_node_lib_gossipsub/Gossipsub/index.html
Module Tezos_dal_node_lib_gossipsub.Gossipsub
Source
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.
type topic = Gs_interface.topic = {
slot_index : int;
pkh : Tezos_crypto.Signature.Public_key_hash.t;
}
type message_id = Gs_interface.message_id = {
commitment : Tezos_crypto_dal.Cryptobox.Commitment.t;
level : int32;
slot_index : int;
shard_index : int;
pkh : Tezos_crypto.Signature.Public_key_hash.t;
}
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.
The transport layer module exposes the needed primitives, interface and default parameters for the instantiation of the Octez-p2p library.
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.