package octez-protocol-018-Proxford-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type state
type t = state
type nonces

nonces is a hash map corresponding to the data which can be found in the file from nonces_location

load wallet location loads the file corresponding to location and returns a data structure containing the stored information.

generate_seed_nonce nonce_config delegate level computes a nonce via a Deterministic or Random approach, depending on the nonce_config argument; the deterministic case uses as parameters delegate and level.

register_nonce cctxt ~chain_id block_hash nonce ~cycle ~level ~round updates the contents from the nonces file located using cctxt and ~chain_id by adding a new entry or replacing an existing one of the form block_hash : nonce * ~cycle * ~level * ~round.

start_revelation_worker cctxt config chain_id constants block_stream represents the continuous process of receiving new proposal from block_stream and applying them to the internal state created from cctxt, config, chain_id and constants; each new proposal can produce a nonce, to be stored in a nonce file location, facilitating the nonce revelation process.

OCaml

Innovation. Community. Security.