FELDMAN v3.0 - Los Libros Contables con Merkle Tree

- Validación de milestones y bloques con reglas M-001 a M-003, B-001 a B-007
- Hash chaining (hash_previo + hash_contenido → h_registro)
- Merkle tree para consolidación de batches
- Endpoints: /validar, /consolidar, /verify/{h}, /batches
- Tablas: milestones, bloques, feldman_cola, merkle_batches
- blockchain_pending para futura integración con NOTARIO
This commit is contained in:
root
2025-12-24 11:18:29 +00:00
commit e47d081705
5 changed files with 641 additions and 0 deletions

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 5054
CMD ["gunicorn", "--bind", "0.0.0.0:5054", "--workers", "2", "app:app"]