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

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-libs.crypto-dal/Tezos_crypto_dal/Cryptobox/Config/index.html

Module Cryptobox.ConfigSource

node parameters for the DAL.

Sourcetype t = Tezos_crypto_dal_octez_dal_config.Dal_config.t = {
  1. activated : bool;
  2. use_mock_srs_for_testing : bool;
  3. bootstrap_peers : string list;
}
Sourceval encoding : t Data_encoding.t
Sourceval default : t
Sourceval init_verifier_dal : t -> unit Tezos_error_monad.Error_monad.tzresult

init_dal find_trusted_setup_files ?(srs_size_log2=21) config initializes the DAL according to the dal configuration config, a function to find the SRS files find_trusted_setup_files and the optional log2 of the SRS size srs_size_log2.

When config.use_mock_srs_for_testing = false, init_dal loads initialisation_parameters from the files at the paths provided by find_trusted_setup_files (). It is important that every time the primitives above are used, they are used with the very same initialization parameters. (To ensure this property, an integrity check is run.) In this case, init_dal can take several seconds to run.

Sourceval init_prover_dal : find_srs_files: (unit -> (string * string) Tezos_error_monad.Error_monad.tzresult) -> ?srs_size_log2:int -> t -> unit Tezos_error_monad.Error_monad.tzresult Lwt.t
OCaml

Innovation. Community. Security.