Skip to main content

Module hash

Module hash 

Source

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