How akshitm755-byte/bitcoinforensics works
ABI is a blockchain AML investigation platform: it streams or loads transaction graphs, scores suspicious activity, and turns alerts into evidence-backed reports and PDF dossiers shown in an investigator dashboard. The graph preserves the documented Pub/Sub reporting path, OSINT/RAG and executive-summary capabilities, and the principal runtime layers. Some subsystem relationships come from README documentation because their source was not excerpted; uncertain links are omitted rather than inferred.
Main entry points: src/server.py Reporting Service · main.py Runtime API · App.jsx Dashboard App · src/server.py Scoring API
Components 23
Data Ingestion
- AMLSim Stream
module1_data_pipeline/src/amlsim_stream.py - Elliptic++ Loader
module1_data_pipeline/src/elliptic_gcs_loader.py - Feature Builder
module1_data_pipeline/src/features.py
Graph Detection
- Scoring API
module2_detection_gnn/src/server.py - Incremental Graph
module2_detection_gnn/src/graph_store.py - Temporal GNN
module2_detection_gnn/src/torch_model.py
Forensic Reporting
- Alert Queue
- Reporting Service
module3_reporting_agents/src/server.py - Evidence Builder
module3_reporting_agents/src/evidence_builder.py - GNN Explainer
module3_reporting_agents/src/explainer.py - OSINT Scraper
module3_reporting_agents/src/osint_scraper.py - Case Retrieval
module3_reporting_agents/src/retrieval.py - Report Orchestrator
module3_reporting_agents/src/orchestrator.py - PDF Dossiers
module3_reporting_agents/src/pdf_exporter.py - GCS Vault
Investigator Experience
- Runtime API
module4_runtime_ui/backend_api/main.py - Dashboard App
module4_runtime_ui/frontend_ui/src/App.jsx - Live Graph
module4_runtime_ui/frontend_ui/src/components/LiveExpandingGraph.jsx - Feature Insights
module4_runtime_ui/frontend_ui/src/components/FeatureInsightWindow.jsx - Dossier Viewer
module4_runtime_ui/frontend_ui/src/components/DossierViewer.jsx
Shared Contracts
- Domain Schemas
contracts/schemas.py
Other components
- Investigator
- Gemini Service
Connections 23
- Investigator → Dashboard App: uses
README.md - Dashboard App → Runtime API: requests API
module4_runtime_ui/frontend_ui/src/App.jsx - Runtime API → AMLSim Stream: advances stream
module4_runtime_ui/backend_api/main.py - Runtime API → Scoring API: scores events
- AMLSim Stream → Domain Schemas: emits events
module1_data_pipeline/src/amlsim_stream.py - Elliptic++ Loader → Feature Builder: builds features
module1_data_pipeline/src/elliptic_gcs_loader.py - Incremental Graph → Feature Builder: computes features
module2_detection_gnn/src/graph_store.py - Scoring API → Incremental Graph: updates graph
module2_detection_gnn/src/server.py - Scoring API → Temporal GNN: scores subgraph
module2_detection_gnn/src/server.py - Runtime API → Alert Queue: publishes alerts
README.md - Alert Queue → Reporting Service: pushes alert
README.md - Reporting Service → Evidence Builder: builds evidence
module3_reporting_agents/src/server.py - Evidence Builder → GNN Explainer: uses explanations
module3_reporting_agents/src/evidence_builder.py - Evidence Builder → OSINT Scraper: fetches precedents
module3_reporting_agents/src/evidence_builder.py - Reporting Service → Report Orchestrator: generates report
module3_reporting_agents/src/server.py - Reporting Service → PDF Dossiers: exports dossier
module3_reporting_agents/src/server.py - Report Orchestrator → Gemini Service: drafts claims
README.md - Reporting Service → GCS Vault: persists reports
README.md - PDF Dossiers → GCS Vault: persists dossiers
README.md - Runtime API → GCS Vault: reads reports
module4_runtime_ui/backend_api/main.py - Dashboard App → Live Graph: renders graph
module4_runtime_ui/frontend_ui/src/App.jsx - Dashboard App → Dossier Viewer: renders dossier
module4_runtime_ui/frontend_ui/src/App.jsx - Live Graph → Feature Insights: renders insights
module4_runtime_ui/frontend_ui/src/components/LiveExpandingGraph.jsx