Portable.Of_commitA node implementation with hashes for keys is trivially portable:
include Commit_intf.S
with type t = S.t
with type hash = S.hash
with module Info = S.Infotype hash = S.hashtype t = S.tThe type for commit values.
val encoding : t Data_encoding.tencoding is the data_encoding for t.
type node_key = hashType for node keys.
val node_key_encoding : node_key Data_encoding.tnode_key_encoding is the data_encoding for node_key.
type commit_key = hashType for commit keys.
val commit_key_t : commit_key Type.tval commit_key_encoding : commit_key Data_encoding.tcommit_key_encoding is the data_encoding for commit_key.
module Info = S.InfoThe type for commit info.
val init : info:Info.t -> node:node_key -> parents:commit_key list -> tinit ~info ~node ~parents returns a new a commit.
val parents : t -> commit_key listThe commit parents.