artifact.py
python
sha256:c07f2f34a0db9f43fe866f157d1935322008545ff8940c06c7c921eb219c55ab
NXP-b DONE: independent BV-r2 pass + ISR (SD-17)
Human
minor
⚠ breaking
3 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:c07f2f34a0db9f43fe866f157d1935322008545ff8940c06c7c921eb219c55ab
NXP-b DONE: independent BV-r2 pass + ISR (SD-17)
Human
minor
⚠
3 days ago