package tezos-context

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module I.Snapshot

This type exposes the internal nodes used in irmin in order to use them during snapshot import and export.

type kinded_hash =
  1. | Contents of hash * unit
  2. | Node of hash
type entry = {
  1. step : string;
  2. hash : kinded_hash;
}
type inode_tree = {
  1. depth : int;
  2. length : int;
  3. pointers : (int * hash) list;
}
type v =
  1. | Inode_tree of inode_tree
  2. | Inode_value of entry list
type inode = {
  1. v : v;
  2. root : bool;
}
type t =
  1. | Inode of inode
  2. | Blob of contents
val encoding : inode Tezos_base.TzPervasives.Data_encoding.t
OCaml

Innovation. Community. Security.