package tezos-context

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-context.memory/Tezos_context_memory/Make/Proof/index.html

Module Make.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.