Core: - paths.py: centralized ~/.soosef/ path constants - config.py: JSON config loader with dataclass defaults - exceptions.py: SoosefError hierarchy - cli.py: unified Click CLI wrapping stegasoo + verisoo + native commands Keystore: - manager.py: unified key management (Ed25519 identity + channel keys) - models.py: IdentityInfo, KeystoreStatus dataclasses - export.py: encrypted key bundle export/import for USB transfer Fieldkit: - killswitch.py: ordered emergency data destruction (keys first) - deadman.py: dead man's switch with check-in timer - tamper.py: SHA-256 file integrity baseline + checking - usb_monitor.py: pyudev USB whitelist enforcement - geofence.py: haversine-based GPS boundary checking Web frontend (Flask app factory + blueprints): - app.py: create_app() factory with context processor - blueprints: stego, attest, fieldkit, keys, admin - templates: base.html (dark theme, unified nav), dashboard, all section pages - static: CSS, favicon Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
883 B
Python
35 lines
883 B
Python
"""
|
|
Attestation blueprint — attest and verify images via Verisoo.
|
|
|
|
Wraps verisoo's attestation.create_attestation() and
|
|
verification.verify_image() with a web UI.
|
|
"""
|
|
|
|
from flask import Blueprint, render_template
|
|
|
|
bp = Blueprint("attest", __name__)
|
|
|
|
|
|
@bp.route("/attest", methods=["GET", "POST"])
|
|
def attest():
|
|
"""Create a provenance attestation for an image."""
|
|
return render_template("attest/attest.html")
|
|
|
|
|
|
@bp.route("/verify", methods=["GET", "POST"])
|
|
def verify():
|
|
"""Verify an image against attestation records."""
|
|
return render_template("attest/verify.html")
|
|
|
|
|
|
@bp.route("/attest/record/<record_id>")
|
|
def record(record_id):
|
|
"""View a single attestation record."""
|
|
return render_template("attest/record.html", record_id=record_id)
|
|
|
|
|
|
@bp.route("/attest/log")
|
|
def log():
|
|
"""List recent attestations."""
|
|
return render_template("attest/log.html")
|