bookshelf._core.hashing#
bookshelf._core.hashing #
Shared content-hash helpers producing the canonical sha256:<hex> format.
Every digest in the SDK uses this one format, covering output registration, notebook capture, bundle and lock hashing, and config_hash, so the formatting lives in exactly one place.
canonical_json_bytes(obj) #
Return canonical JSON bytes for obj.
Uses sort_keys=True, separators=(",",":") matching the backend convention so the same structure always serialises identically. This is the plain serialiser. It does not recursively sort list elements or drop None values (that pre-processing belongs to each call site).