artifact.py python
12 lines 304 B
Raw
sha256:8461d44b77376fbf06fa7c3e085d309e3010fd8d5886d63c63e69ce118811ad4 docs: record AFF-b feature-tip SHAs after AFF-b-ISR commit. Human 29 days ago
1 """Artifact digest helpers (§K9.8)."""
2
3 from __future__ import annotations
4
5 import hashlib
6 from pathlib import Path
7
8
9 def sha256_file_bytes(path: Path) -> str:
10 """Return lowercase hex SHA-256 of raw file bytes."""
11 digest = hashlib.sha256(path.read_bytes()).hexdigest()
12 return digest.lower()
File History 1 commit
sha256:208d9dc47f0c6d8553ee80aafc8f0993a6ebf0a88410746f47f58b4e7c6fd6a6 fix(muse): use rev-parse for muse-only branch status Human minor ⚠ 27 days ago