oc_chat
Loading...
Searching...
No Matches
hashing.py File Reference

Go to the source code of this file.

Namespaces

namespace  oc_chat
namespace  oc_chat.registry
namespace  oc_chat.registry.source
namespace  oc_chat.registry.source.hashing

Functions

str oc_chat.registry.source.hashing._sha256_hex (bytes data)
str oc_chat.registry.source.hashing._hash_preimage (dict[str, Any] preimage)
dict[str, Any] oc_chat.registry.source.hashing.raw_source_tree_preimage (Path root)
str oc_chat.registry.source.hashing.raw_source_tree_hash (Path root)
dict[str, Any] oc_chat.registry.source.hashing.source_hash_preimage (list[ScannedRecord] records)
str oc_chat.registry.source.hashing.source_hash (list[ScannedRecord] records)
dict[str, Any] oc_chat.registry.source.hashing.semantic_preimage (list[tuple[ScannedRecord, RegistryModel]] loaded)
str oc_chat.registry.source.hashing.semantic_hash (list[tuple[ScannedRecord, RegistryModel]] loaded)
bool oc_chat.registry.source.hashing._table_exists (sqlite3.Connection conn, str name)
list[sqlite3.Row] oc_chat.registry.source.hashing._rows (sqlite3.Connection conn, str table, str columns)
Optional[str] oc_chat.registry.source.hashing._canonical_query_params (Optional[str] value, str section_path)
dict[str, Any] oc_chat.registry.source.hashing.logical_state_projection (sqlite3.Connection conn)
str oc_chat.registry.source.hashing.logical_state_hash (sqlite3.Connection conn)
dict[str, Optional[str]] oc_chat.registry.source.hashing.stage_hashes (str stage, *, Optional[str] raw=None, Optional[str] source=None, Optional[str] logical=None)
dict[str, Any] oc_chat.registry.source.hashing.hash_preimage (str which, *, Optional[Path] root=None, Optional[list[ScannedRecord]] records=None, Optional[list[tuple[ScannedRecord, RegistryModel]]] loaded=None, Optional[sqlite3.Connection] conn=None)

Variables

int oc_chat.registry.source.hashing.HASH_PREIMAGE_SCHEMA_VERSION = 1
str oc_chat.registry.source.hashing.STAGE_SCAN = "scan"
str oc_chat.registry.source.hashing.STAGE_PARSE = "parse"
str oc_chat.registry.source.hashing.STAGE_CROSS_RECORD = "cross_record"
str oc_chat.registry.source.hashing.STAGE_BUILD = "build"
str oc_chat.registry.source.hashing.STAGE_CLEAN = "clean"