Spaces:
Paused

yaz / src /core /traceability /__init__.py
anaselamr's picture
[PLATFORM] feat(sprint53-76): Sprint 53→76 — EDUCA cards, SURGIO daily-briefing, traceability core, security hardening, VPS deploy runbook, tiered backup retention, visitor login fix (black+isort+ruff applied)
8f21a0d
Raw History Blame Contribute Delete
1.05 kB
"""
YAZ Core — Traceability Module
================================
Canonical blockchain/hash traceability layer.
Rule (AGENTS.md): ALL chain-interaction logic MUST go through this module.
Never write chain logic inside engine service layers directly.
ON-CHAIN (hashes/signatures only):
- Protocol version hashes
- Workflow execution signatures
- Audit notarization hashes
- Research publication timestamps
- Institutional validation records
- Consent proof hashes
- Dataset integrity proofs
NEVER on-chain:
- Raw patient data / PHI
- Full records or documents
- Any identifiable clinical data
Architecture: off-chain clinical data (PostgreSQL) + on-chain hashes (append-only log)
"""
from .hasher import compute_hash, compute_protocol_hash, compute_workflow_signature
from .models import HashRecord, HashRecordType
from .service import TraceabilityService
__all__ = [
"TraceabilityService",
"HashRecord",
"HashRecordType",
"compute_hash",
"compute_protocol_hash",
"compute_workflow_signature",
]