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_PARENTrepeats; 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).