The genesis document contains a set of parameters that outline the initial state of the consensus layer and its services.
For more details about the actual genesis document's API, see genesis API documentation.
The genesis document's hash is computed as:
Base16() represents the hex encoding function,
SHA512-256() represents the SHA-512/256 hash function as described in
CBOR() represents the canonical CBOR encoding function as described in
Serialization documentation, and
<genesis-document> represents a given genesis document.
A genesis file is a JSON file corresponding to a serialized genesis document.
The canonical form of a genesis file is the pretty-printed JSON file with 2-space indents ending with a newline, where:
Maps have their keys converted to strings which are then encoded in lexicographical order.
This is Go's default behavior. For more details, see
This form is used to enable simple diffing/patching with the standard Unix tools (i.e.