Source identity
| Field | Recorded value |
|---|---|
| Source type | archive member |
| Original record | verify_package.py |
| Date | Not specified in source |
| Path or archive member | archives/libsrc-5feba6626817/Supplementary_Material_S1/code/verify_package.py |
| Original SHA-256 | 894532a5bd4c666965f7a9b1de648727622df9244d6a6066af1b1ffd24b9863c |
| Reading-copy SHA-256 | 894532a5bd4c666965f7a9b1de648727622df9244d6a6066af1b1ffd24b9863c |
| Archive source | {"sourceId": "libsrc-5feba6626817", "member": "Supplementary_Material_S1/code/verify_package.py"} |
Every recorded occurrence
These 2 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| verify_package.py | {"sourceId": "libsrc-5feba6626817", "member": "Supplementary_Material_S1/code/verify_package.py"} | libsrc-089c905aeacd | archives/libsrc-5feba6626817/Supplementary_Material_S1/code/verify_package.py |
| verify_package.py | {"sourceId": "libsrc-6c9313f7cdd5", "member": "Declaration_Study_v1/code/verify_package.py"} | libsrc-14873aa4c3c7 | archives/libsrc-6c9313f7cdd5/Declaration_Study_v1/code/verify_package.py |
Recovered source transcript
Download complete source text ↓11 lines · 0.5 KB
"""Verify the source-connected calculation's distributed numerical artifacts."""
from pathlib import Path
import hashlib,json
ROOT=Path(__file__).resolve().parents[1]
v=json.loads((ROOT/'provenance/source_verification.json').read_text())
for p,h in v['distributed_derived_artifact_sha256'].items():
actual=hashlib.sha256((ROOT/p).read_bytes()).hexdigest()
if actual!=h:raise ValueError(f'Checksum mismatch: {p}')
print('PASS',p)
print('All five independently transferred artifact hashes match the source-session receipts.')