mud_server.services.policy.hashing ================================== .. py:module:: mud_server.services.policy.hashing .. autoapi-nested-parse:: Deterministic hashing helpers for policy service payloads. Functions --------- .. autoapisummary:: mud_server.services.policy.hashing.compute_content_hash mud_server.services.policy.hashing.compute_artifact_hash Module Contents --------------- .. py:function:: compute_content_hash(*, policy_id, variant, content) Return deterministic hash for one canonical policy variant payload. Identity and variant are included in the hash envelope so two policies with identical content still hash differently at contract level. .. py:function:: compute_artifact_hash(*, artifact) Compute deterministic artifact hash excluding self-referential hash key.