compileml.runtime — primitives
canonical_hash
def canonical_hash(artifact: dict) -> str
from compileml.runtime import canonical_hash
SHA-256 hex digest of the canonical serialization (spec §9).
Parameters#
| Name | Type | Default | Kind |
|---|---|---|---|
| artifact | dict | required | positional |
Returns#
str