pub fn commit_signing_bytes(c: &Commit) -> Result<Vec<u8>, MkitError>Expand description
Serialize a commit’s fields for signing. SPEC-SIGNING §3.
INCLUDED, in order:
- Object prologue:
[type=0x03][magic="MKT1"][schema_version=0x01]. tree_hash(32).parent_count(u32 LE) andparent_hash×parent_count(32 each).- Identity author:
[kind:u8][len:u16 LE][payload:len]. message_len(u32 LE) and message bytes.timestamp(u64 LE).signer(32).
EXCLUDED: signature, message_hash, content_digest.