[][src]Module nip_core::constants

Constants used by nip_core.

Constants

IPFS_HASH_LEN
NIP_HEADER_LEN
NIP_PROTOCOL_VERSION

Current protocol version; must be bumped for every breaking format change

Statics

NIP_MAGIC

The first 6 bytes for every header that distinguish a serialized NIP data structure from random bytes

SUBMODULE_TIP_MARKER

A magic value used to signal that a hash is a submodule tip (to be obtained by git on its own). Locally git knows a commit is a submodule tip because it's the only case when a tree entry is a commit. However, this relationship is impossible to express in a NIP index implicitly.