package plebeia

  1. Overview
  2. Docs

Module Internal.Node_hashSource

1 Node hash

Sourcetype t

the type for the node hash.

Non Extenders have the fixed 224bit (28byte) length.

Extenders have variable lengths from 30 bytes to 256 bytes.

Sourceval encoding : t Data_encoding.t
Sourceval to_hex_string : t -> string

Hex string representation of t

Compute node hash of a node

Sourceval of_internal : t -> t -> t
Sourceval of_bud : t option -> t
Sourceval of_leaf : Value.t -> t
Sourceval of_extender : Segment.t -> t -> t
Sourceval prefix : t -> Hash.t

Get the first 224bits of the node hash

Sourceval compute : Plebeia__.Context.t -> Plebeia__.Node.node -> Plebeia__.Node.view * t

Compute the node hash of the given node. It may traverse the node loading subnodes from the disk to obtain or compute the node hashes of subnodes if necessary.

OCaml

Innovation. Community. Security.