package plebeia

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

Module Plebeia.Node_hashSource

1 Node hash

Sourceval of_bud : Hash.Hasher.t -> Hash.t option -> Hash.Prefix.t
Sourceval of_internal : Hash.Hasher.t -> Hash.t -> Hash.t -> Hash.Prefix.t
Sourceval compute : Hash.Hasher.t -> (Node_type.t -> [< `Hashed of Hash.t * Node_type.t | `Not_Hashed of Node_type.view ]) -> Node_type.t -> Node_type.t * Hash.t

Compute the node hash of the given node.

The function argument for short cutting. It returns the hash of the node if it is available without traversing the node's children.

Tail recursive.

Sourceval compute_without_context : Hash.Hasher.t -> Node_type.t -> (Node_type.t * Hash.t) option

Compute the node hash, but without the loading of Disk nodes. If the node contains Disk _, it returns None

OCaml

Innovation. Community. Security.