plebeia

Merkle Patricia tree implementation
Library plebeia
Module Plebeia . Vc
type t

Type of handle

val empty_cursor : t -> Plebeia__Cursor.cursor
val roots : t -> Roots.t
val context : t -> Plebeia__Context.t
val create : ?context_pos:int64 -> ?context_length:int -> ?hashcons:Hashcons.config -> string -> t
val open_ : mode:Plebeia__Storage.mode -> ?context_pos:int64 -> ?hashcons:Hashcons.config -> string -> t
val close : t -> unit
val checkout : t -> Roots.RootHash.t -> Plebeia__Cursor.cursor option
val commit : ?allow_missing_parent:bool -> ?override:bool -> Plebeia__Bud_cache.t -> t -> parent:Roots.RootHash.t option -> meta:string -> ?hash_override:Roots.RootHash.t -> Plebeia__Cursor.cursor -> Plebeia__Cursor.cursor * Hash.t

Commit a hash. If override is false (by default), hash collision fails the function. If it is true, it overwrites the hash.