Module Tezos_dal_node_lib.Proto_cryptoboxes

type cryptobox_with_precomputation
type t
type Tezos_base.TzPervasives.error +=
  1. | No_cryptobox
  2. | Cannot_register_shard_layout of {
    1. msg : string;
    }

init_~cctxt ~header ~config ~current_head_proto_parameters ~first_seen_level profile plugins returns the new proto_cryptoboxes state in which the cryptoboxes for each protocol known by the associated L1 node are initialized.

add param ~level t adds a new proto_cryptobox which becomes registered at level and is expected to be used starting at this level.

get_for_level ~level t returns the cryptobox that is associated to the given level.

get_latest t returns the cryptobox registered for the highest block, that is expected to be used by the latest block.