Skip to main content

Module headers

Module headers 

Source
Expand description

mkit-* header names and value encodings (SPEC-GIT-BRIDGE §6, §7).

Constants§

MKIT_AUTHOR
MKIT_CONTENT_DIGEST
MKIT_MESSAGE_HASH
MKIT_PARENT
MKIT_SCHEMA
Header names, in the exact emission order the spec pins for commits (§6.1). MKIT_PARENT repeats; the two annotation headers are emitted only when non-zero.
MKIT_SIGNATURE
MKIT_SIGNER
MKIT_TAGGER
MKIT_TARGET
MKIT_TARGET_TYPE
MKIT_TREE
RESERVED
Reserved by §8 for the future remix mapping — never emitted, and reconstruction rejects them so a v1 verifier cannot silently accept a future-format object.
SCHEMA_VALUE
The schema version this mapping covers (§1.2).

Functions§

hash_value
Encode a 32-byte hash header value.
identity_value
Encode an identity header value: <kind-hex2>:<unpadded base64>.
parse_hash
Strict 32-byte lowercase-hex decode.
parse_identity
Strict inverse of identity_value.
parse_signature
Strict 64-byte lowercase-hex decode (signatures).