package plebeia

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

Module Plebeia.Commit_hashSource

3 Hash

3 Hash

Sourcetype t

Commit hash identifies commits. It is

Hash of the top Plebeia node hash + the parent commit hash

The size of commit hash is fixed to 32bytes

Sourceval to_string : t -> string

Get the 32 bytes binary string representation of t.

Sourceval of_string : string -> t

32 bytes binary string representation to t. Fails if the string is inappropriate.

Sourceval length : int

= 32

Sourceval zero : t

zero returns 32 bytes of zeros

Sourceval is_zero : t -> bool
Sourceval to_hex_string : t -> string

Convert to 64 chars of hexdigits to t

Sourceval of_hex_string : string -> t

Reverse of to_hex_string. Fails if the string is inappropriate.

Sourceval show : t -> string

Behaviour can be changed via Hash.show_ref

Sourceval pp : Format.formatter -> t -> unit
Sourceval encoding : t Data_encoding.t
Sourceval gen : t Gen.t
OCaml

Innovation. Community. Security.