package tezos-context

  1. Overview
  2. Docs
Tezos: on-disk context abstraction for `octez-node`

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f

doc/tezos-context.disk/Tezos_context_disk/Context_binary/Proof/index.html

Module Context_binary.ProofSource

Sourcetype merkle_leaf_kind =
  1. | Hole
  2. | Raw_context
Sourcetype merkle_hash_kind =
  1. | Contents
  2. | Node
Sourcetype merkle_node =
  1. | Hash of merkle_hash_kind * string
  2. | Data of raw_context
  3. | Continue of merkle_tree
Sourceval pp_raw_context : Format.formatter -> raw_context -> unit
Sourcetype step = string
Sourcetype value = bytes
Sourcetype index = int
Sourcetype hash = Tezos_base.TzPervasives.Context_hash.t
Sourcetype !'a inode = {
  1. length : int;
  2. proofs : (index * 'a) list;
}
Sourcetype !'a inode_extender = {
  1. length : int;
  2. segment : index list;
  3. proof : 'a;
}
Sourcetype tree =
  1. | Value of value
  2. | Blinded_value of hash
  3. | Node of (step * tree) list
  4. | Blinded_node of hash
  5. | Inode of inode_tree inode
  6. | Extender of inode_tree inode_extender
Sourceand inode_tree =
  1. | Blinded_inode of hash
  2. | Inode_values of (step * tree) list
  3. | Inode_tree of inode_tree inode
  4. | Inode_extender of inode_tree inode_extender
Sourcetype kinded_hash = [
  1. | `Node of hash
  2. | `Value of hash
]
Sourcemodule Stream : sig ... end

Stream proofs represent an explicit traversal of a Merle tree proof. Every element (a node, a value, or a shallow pointer) met is first "compressed" by shallowing its children and then recorded in the proof.

Sourcetype stream = Stream.t
Sourcetype !'a t = {
  1. version : int;
  2. before : kinded_hash;
  3. after : kinded_hash;
  4. state : 'a;
}
Sourcemodule Internal_for_tests : sig ... end
Sourceval proof_hash_eq : 'a t -> 'b t -> bool
OCaml

Innovation. Community. Security.