package tezos-context
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
doc/tezos-context.helpers/Tezos_context_helpers/Context/Make_tree/argument-1-Conf/index.html
Parameter Make_tree.Conf
The branching factor of the inode tree. 32 is a good choice for general applications.
This offers a way to conditional base hashing on node entries instead of inodes. It is available for some backwards compatibility applications, but for most applications, this should be set to 0.
val contents_length_header : Irmin_pack.Conf.length_header
Describes the length header of the user's contents values when binary-encoded. Supported modes are:
Some `Varint
: the length header is a LEB128-encoded integer at the very beginning of the encoded value.
None
: there is no length header, and values have unknown size. NOTE: when usingirmin-pack
in this mode, the selected indexing strategy must index all contents values (as recovering contents values from the store will require referring to the index for their length information).
val inode_child_order : Irmin_pack.Conf.inode_child_order
The strategy used for sorting entries. `Hash_bits
is the recommended choice. `Seeded_hash
is vunerable to attacks if storing user-generated keys.
If true
, irmin-pack raises Failure
if it is asked to save the empty inode. This default is false
. It should be set to true
if the Schema
of the store allows a hash collision between the empty inode and this string of length 1: "\000"
.
See https://github.com/mirage/irmin/issues/1304