Constants§
- SCHEMA_
VERSION - Schema version for event hashing
Functions§
- build_
canonical_ cbor - Build the canonical CBOR preimage for hashing Format: [schema_version, issue_id, actor, ts_unix_ms, parent, kind_tag, kind_payload]
- compute_
event_ id - Compute the event_id from event fields using canonical CBOR + BLAKE2b-256
- kind_
to_ tag_ and_ payload - Convert EventKind to (tag, payload) for CBOR encoding This is public so libgrit-git can use it for chunk encoding