Skip to content

Latest commit

Β 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CryptoGuard: AI Anti-Money Laundering Intelligence Platform

Python Next.js TypeScript Flask TailwindCSS

Machine Learning Blockchain Web3 AI

Status License Node.js scikit-learn


CryptoGuard is an advanced blockchain forensics and regulatory technology platform designed to detect and prevent money laundering in digital wallets. Built with AI/ML models and a modern web interface, it combines real-time transaction analysis with interactive visualization tools for AML compliance and risk assessment.


πŸŽ–οΈ Platform Highlights

πŸ€– ML Models πŸ“Š Data Points ⚑ Processing Speed 🎯 Accuracy
5 Ensemble Millions+ Real-time High
CatBoost, XGBoost, LightGBM Blockchain Transactions < 1 second 85-95%

πŸ“‹ Table of Contents


🎯 Overview

CryptoGuard leverages multiple machine learning models (CatBoost, LightGBM, XGBoost, Random Forest, Logistic Regression) to analyze blockchain transactions and identify suspicious wallet activities associated with money laundering. The platform provides:

  • πŸ” Real-time Analysis: Process blockchain transactions and flag suspicious patterns
  • πŸ“Š Visual Intelligence: Interactive graphs and 3D topology visualizations
  • 🎯 Risk Scoring: AI-powered risk assessment with explainable predictions
  • πŸ“ Case Management: Administrative tools for investigating and managing cases
  • βœ… Regulatory Compliance: Support for KYC (Know Your Customer) and AML requirements

✨ Key Features

πŸ” Backend Services

  • πŸ€– Multi-Model ML Pipeline: Ensemble of 5 trained machine learning models
    • CatBoost, LightGBM, XGBoost, Random Forest, Logistic Regression
  • ⚑ Real-time Transaction Analysis: Process blockchain transactions and wallet behaviors
  • πŸ”— Blockchain Integration: Direct access to on-chain data via BigQuery and Web3 APIs
  • πŸ“Š Data Processing Pipeline: ETL pipeline for raw blockchain data
  • 🌐 API-First Architecture: RESTful API for predictions and analysis
  • πŸ’‘ Model Explainability: Gemini-powered explanations for predictions
  • πŸ“ˆ Scalable Processing: Handles large-scale blockchain data efficiently

πŸ–₯️ Frontend Interface

  • 🦊 User Authentication: MetaMask wallet-based authentication for users
  • πŸ‘¨β€πŸ’Ό Admin Dashboard: Secure admin portal with email/password authentication
  • πŸ“Š Interactive Visualizations:
    • 🌐 Real-time transaction graphs (force-directed)
    • 🎨 3D money laundering topology visualization
    • πŸ” Peeling chains analysis
    • 🧠 GNN-based detection overlays
  • πŸ“ Case Management: Create, track, and manage AML investigation cases
  • πŸ“± Responsive Design: Mobile-friendly UI with Tailwind CSS
  • 🎯 Risk Scoring: Visual risk indicators and detailed reports

πŸ“ Project Structure

CryptoGuard/
β”œβ”€β”€ backend/                          # Python ML backend service
β”‚   β”œβ”€β”€ app.py                       # Flask/FastAPI application entry point
β”‚   β”œβ”€β”€ requirements.txt              # Python dependencies
β”‚   β”œβ”€β”€ README.md                    # Backend documentation
β”‚   β”‚
β”‚   β”œβ”€β”€ data-pipeline/               # ETL pipeline for blockchain data
β”‚   β”‚   β”œβ”€β”€ processor/               # TypeScript data processor
β”‚   β”‚   β”‚   β”œβ”€β”€ src/                 # Transaction fetching and processing scripts
β”‚   β”‚   β”‚   β”œβ”€β”€ lib/                 # Database and utility modules
β”‚   β”‚   β”‚   └── setup/               # Setup guides for database
β”‚   β”‚   └── data/                    # SQL queries and data files
β”‚   β”‚
β”‚   β”œβ”€β”€ models/                      # Trained ML models (joblib format)
β”‚   β”‚   β”œβ”€β”€ CatBoost.joblib
β”‚   β”‚   β”œβ”€β”€ LightGBM.joblib
β”‚   β”‚   β”œβ”€β”€ LogisticRegression.joblib
β”‚   β”‚   β”œβ”€β”€ RandomForest.joblib
β”‚   β”‚   └── XGBoost.joblib
β”‚   β”‚
β”‚   β”œβ”€β”€ utils/                       # Utility modules
β”‚   β”‚   β”œβ”€β”€ data_process.py          # Data preprocessing utilities
β”‚   β”‚   β”œβ”€β”€ data_info.py             # Data analysis utilities
β”‚   β”‚   β”œβ”€β”€ catboost_model.py        # CatBoost model wrapper
β”‚   β”‚   β”œβ”€β”€ lightgbm_model.py        # LightGBM model wrapper
β”‚   β”‚   β”œβ”€β”€ xgboost_model.py         # XGBoost model wrapper
β”‚   β”‚   β”œβ”€β”€ random_forest.py         # Random Forest model wrapper
β”‚   β”‚   β”œβ”€β”€ logistic_regression.py   # Logistic Regression model wrapper
β”‚   β”‚   β”œβ”€β”€ crypto_graph_analyzer.py # Transaction graph analysis
β”‚   β”‚   └── gemini_explainer.py      # AI-powered prediction explanations
β”‚   β”‚
β”‚   β”œβ”€β”€ data/                        # Datasets
β”‚   β”‚   β”œβ”€β”€ raw.csv                  # Raw blockchain transaction data
β”‚   β”‚   └── processed.csv            # Preprocessed training data
β”‚   β”‚
β”‚   └── catboost_info/               # CatBoost training logs
β”‚
β”œβ”€β”€ frontend/                         # Next.js web application
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ app/                     # App Router pages
β”‚   β”‚   β”‚   β”œβ”€β”€ page.tsx             # Landing page
β”‚   β”‚   β”‚   β”œβ”€β”€ admin/               # Admin routes
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ overview/        # Dashboard overview
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ cases/           # Case management
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ case/            # Individual case view
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ visualization/   # Advanced visualizations
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ gnn-detection/   # GNN detection interface
β”‚   β”‚   β”‚   β”‚   β”œβ”€β”€ peeling-chains/  # Peeling chains analysis
β”‚   β”‚   β”‚   β”‚   └── gather-scatter/  # Gather-scatter visualization
β”‚   β”‚   β”‚   └── user/                # User routes
β”‚   β”‚   β”œβ”€β”€ api/                     # API routes
β”‚   β”‚   β”‚   └── auth/                # Authentication endpoints
β”‚   β”‚   β”œβ”€β”€ components/              # Reusable UI components
β”‚   β”‚   β”‚   β”œβ”€β”€ ui/                  # Base UI primitives
β”‚   β”‚   β”‚   └── visualizations/      # Visualization components
β”‚   β”‚   β”œβ”€β”€ lib/                     # Utility libraries
β”‚   β”‚   β”‚   β”œβ”€β”€ auth.ts              # Authentication logic
β”‚   β”‚   β”‚   β”œβ”€β”€ wallet-service.ts    # Web3/MetaMask integration
β”‚   β”‚   β”‚   β”œβ”€β”€ auth-context.tsx     # Auth React context
β”‚   β”‚   β”‚   β”œβ”€β”€ api/                 # API client utilities
β”‚   β”‚   β”‚   └── utils.ts             # General utilities
β”‚   β”‚   β”œβ”€β”€ providers/               # React providers
β”‚   β”‚   └── styles/                  # Global stylesheets
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ tsconfig.json
β”‚   β”œβ”€β”€ next.config.mjs
β”‚   └── README.md                    # Frontend documentation
β”‚
β”œβ”€β”€ .gitignore                       # Global git ignore
β”œβ”€β”€ README.md                        # THIS FILE - Root documentation
β”œβ”€β”€ LICENSE                          # MIT License
β”œβ”€β”€ ARCHITECTURE.md                  # System architecture documentation
β”œβ”€β”€ SETUP.md                         # Detailed setup instructions
└── package.json                     # Monorepo root configuration

πŸ›  Technology Stack

🐍 Backend Technologies

Python Flask CatBoost XGBoost LightGBM scikit-learn pandas NumPy Web3.py

βš›οΈ Frontend Technologies

Next.js TypeScript React TailwindCSS Radix UI ethers.js Three.js Framer Motion

πŸ—„οΈ Data & Infrastructure

PostgreSQL BigQuery Node.js JWT Git


Backend

Component Technology Purpose
Runtime Python 3.9+ Core backend language
Web Framework Flask/FastAPI HTTP API server
ML/AI CatBoost, LightGBM, XGBoost, scikit-learn Model training and prediction
Data Processing Pandas, NumPy Data manipulation and analysis
Blockchain Data BigQuery, Web3.py On-chain data access
Explanations Google Gemini API AI-powered result explanations
Serialization joblib, pickle Model persistence

Frontend

Component Technology Purpose
Framework Next.js 14 (App Router) React-based web application
Styling Tailwind CSS 4 Utility-first CSS framework
UI Components Radix UI Unstyled, accessible components
Authentication jose (JWT) Token management
Web3 ethers.js MetaMask and blockchain interaction
Visualization Three.js, react-force-graph 3D and graph visualizations
Animations Framer Motion Smooth UI animations
Language TypeScript Type-safe frontend code

Data Pipeline

Component Technology Purpose
Language TypeScript Type-safe data processing
Database PostgreSQL Data storage
API Dune Analytics, BigQuery Blockchain data sources
Runtime Node.js Script execution

πŸš€ Quick Start

Prerequisites

Python Node.js PostgreSQL MetaMask Git

  • Node.js 18+ (for frontend)
  • Python 3.9+ (for backend)
  • npm or yarn (for package management)
  • MetaMask browser extension (for user login)
  • Git (for version control)

Installation Summary

1. Clone & Setup

# Clone the repository
git clone https://github.com/yourusername/CryptoGuard.git
cd CryptoGuard

# Install dependencies for both frontend and backend
npm install

2. Backend Setup

cd backend

# Create virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install Python dependencies
pip install -r requirements.txt

# Configure environment variables
cp .env.example .env  # Create from template if exists

cd ..

3. Frontend Setup

cd frontend

# Install Node dependencies
npm install

# Configure environment variables
cp .env.example .env.local  # Create from template if exists

cd ..

4. Run Services

# Terminal 1: Start backend
cd backend
python app.py

# Terminal 2: Start frontend
cd frontend
npm run dev

Visit http://localhost:3000 in your browser.


πŸ“¦ Installation

Detailed Backend Installation

cd backend

# Create Python virtual environment
python -m venv venv

# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate

# On Windows:
venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Requirements:

  • Python 3.8+
  • pip package manager
  • Virtual environment tool (venv)

Detailed Frontend Installation

cd frontend

# Install Node dependencies
npm install
# or
yarn install

# Verify installation
npm --version  # Should be 9+
node --version # Should be 18+

Requirements:

  • Node.js 18+
  • npm 9+ or yarn 3+

βš™οΈ Configuration

Backend Configuration

Create a .env file in the backend/ directory:

# Flask/FastAPI Configuration
FLASK_ENV=development
API_PORT=5000

# Machine Learning Models
MODEL_PATH=./models
SCALER_PATH=./models/scaler.pkl

# Blockchain Data Sources
BIGQUERY_PROJECT_ID=your-project-id
BIGQUERY_DATASET=your-dataset

# Gemini API (for explanations)
GEMINI_API_KEY=your-gemini-api-key

# Database Configuration
DATABASE_URL=postgresql://user:password@localhost:5432/cryptoguard

# Logging
LOG_LEVEL=INFO

Frontend Configuration

Create a .env.local file in the frontend/ directory:

# Authentication
JWT_SECRET=your-super-secret-key-change-this-in-production

# Admin Credentials
ADMIN_EMAIL=admin@cryptoguard.io
ADMIN_PASSWORD=your-secure-password-change-this

# Backend API
NEXT_PUBLIC_API_URL=http://localhost:5000

# Network Configuration
NEXT_PUBLIC_NETWORK_ID=1  # 1 for Ethereum mainnet, 5 for Goerli testnet

Important: Never commit .env or .env.local files to version control!


πŸ“– Usage

Backend - Making Predictions

cd backend

# Run the main application
python app.py

# Make API request to predict for a wallet
curl -X POST http://localhost:5000/predict \
  -H "Content-Type: application/json" \
  -d '{
    "wallet_address": "0x1234...",
    "transaction_history": [...]
  }'

Frontend - User Dashboard

  1. Visit http://localhost:3000
  2. Click "Connect Wallet" (MetaMask required)
  3. Sign the authentication message
  4. Access user dashboard with transaction analysis

Frontend - Admin Dashboard

  1. Visit http://localhost:3000/auth/admin
  2. Enter configured admin credentials
  3. Access admin dashboard for case management and detailed analysis

πŸ— Architecture

CryptoGuard follows a monorepo architecture with clear separation of concerns:

System Components

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                      User Browser                            β”‚
β”‚  (MetaMask Wallet Integration, Web3 Support)                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚
                            β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                 Frontend (Next.js 14)                        β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚  User Routes β”‚  β”‚Admin Dashboardβ”‚  β”‚ Visualizations  β”‚   β”‚
β”‚  β”‚  (MetaMask)  β”‚  β”‚  (JWT Auth)   β”‚  β”‚(Three.js, D3.js)β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚
                    HTTP/REST API
                            β”‚
                            β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                 Backend (Python API)                         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚
β”‚  β”‚ Data Ingress β”‚  β”‚  ML Models       β”‚  β”‚  Analysis    β”‚   β”‚
β”‚  β”‚ (Validation) β”‚  β”‚  (5 Models)      β”‚  β”‚  & Scoring   β”‚   β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   β”‚
β”‚         β”‚                                         β”‚            β”‚
β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜            β”‚
β”‚                          β”‚                                     β”‚
β”‚         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                  β”‚
β”‚         β–Ό                                   β–Ό                  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”‚
β”‚  β”‚ Explainability β”‚           β”‚  Graph Analysis      β”‚        β”‚
β”‚  β”‚ (Gemini API)   β”‚           β”‚  (Crypto Analyzer)   β”‚        β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β–Ό                   β–Ό                   β–Ό
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚ BigQueryβ”‚         β”‚ Postgresβ”‚         β”‚  Redis   β”‚
   β”‚(Blockchain Data)  β”‚(Metadata)        β”‚(Cache)   β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Data Flow

  1. User Input β†’ Frontend captures wallet address or case parameters
  2. API Request β†’ Sent to backend with validation
  3. Data Processing β†’ Backend loads features and preprocessing
  4. ML Prediction β†’ Ensemble of 5 models generates scores
  5. Explainability β†’ Gemini API explains prediction reasoning
  6. Visualization β†’ Results rendered in interactive graphs
  7. Storage β†’ Case data persisted to PostgreSQL

For detailed architecture documentation, see ARCHITECTURE.md


πŸ“‘ API Documentation

Authentication Endpoints

Get Wallet Nonce

POST /api/auth/wallet/nonce
Content-Type: application/json

{
  "walletAddress": "0x1234567890abcdef..."
}

Response:
{
  "nonce": "12345",
  "message": "Sign this message to authenticate..."
}

Verify Wallet Signature

POST /api/auth/wallet/verify
Content-Type: application/json

{
  "walletAddress": "0x1234567890abcdef...",
  "signature": "0x..."
}

Response:
{
  "token": "eyJhbGc...",
  "user": {
    "walletAddress": "0x1234567890abcdef...",
    "isAdmin": false
  }
}

Admin Login

POST /api/auth/admin/login
Content-Type: application/json

{
  "email": "admin@cryptoguard.io",
  "password": "password"
}

Response:
{
  "token": "eyJhbGc...",
  "user": {
    "email": "admin@cryptoguard.io",
    "isAdmin": true
  }
}

Prediction Endpoints

Analyze Wallet (Backend)

POST /analyze
Content-Type: application/json
Authorization: Bearer {token}

{
  "walletAddress": "0x1234567890abcdef...",
  "includeExplanation": true
}

Response:
{
  "riskScore": 0.87,
  "category": "high_risk",
  "modelScores": {
    "catboost": 0.89,
    "lightgbm": 0.85,
    "xgboost": 0.88,
    "randomforest": 0.86,
    "logisticregression": 0.82
  },
  "explanation": "This wallet shows patterns consistent with...",
  "flaggedFeatures": [...]
}

For complete API documentation, see API.md (to be created)


πŸ”§ Development

Running in Development Mode

# Terminal 1: Backend (Flask Development Server)
cd backend
python app.py
# πŸš€ Runs on http://localhost:5000

# Terminal 2: Frontend (Next.js Development Server)
cd frontend
npm run dev
# πŸš€ Runs on http://localhost:3000

Debugging

Backend Debugging:

# Run with Python debugger
python -m pdb app.py

# Or use VS Code with Python extension
# πŸ” Add breakpoints and use Debug launcher (F5)

Frontend Debugging:

# Use Next.js built-in debugging
# VSCode: Select "Next.js: debug server-side" launcher

# Or use browser DevTools
# πŸ” F12 β†’ Sources tab β†’ Set breakpoints

Testing

# Backend tests (when test suite is added)
cd backend
pytest tests/ -v

# Frontend tests
cd frontend
npm run test
# or
npm run test:watch

Code Quality

Code Style: Black ESLint Prettier

  • Backend: Follow PEP 8 with black and flake8
  • Frontend: Follow ESLint rules in .eslintrc.json

🎯 What Makes CryptoGuard Different?

Feature CryptoGuard Traditional AML Tools
ML Models 🟒 5 Ensemble Models 🟑 Single Model/Rules
Real-time Analysis 🟒 Instant Predictions πŸ”΄ Batch Processing
Blockchain Native 🟒 Direct On-Chain Data 🟑 Third-party APIs
Explainability 🟒 AI-Powered Insights πŸ”΄ Black Box
Visualization 🟒 Interactive 3D/Graphs 🟑 Static Reports
Open Source 🟒 Fully Open πŸ”΄ Proprietary
Cost 🟒 Free πŸ”΄ Expensive Licenses

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

License: MIT


πŸ™ Acknowledgments

  • πŸ” Blockchain Security Community for insights and best practices
  • 🌟 Open Source Contributors of all dependencies used
  • 🧠 ML Research Community for model architectures and techniques
  • πŸ’Ž Ethereum Foundation for Web3 infrastructure

πŸ“ž Support & Contact

GitHub Issues GitHub Discussions Email

For questions, issues, or suggestions:


πŸ—Ί Roadmap

Phase 1 (Current)

  • Multi-model ML pipeline
  • MetaMask authentication
  • Interactive visualizations
  • Case management system

Phase 2 (In Progress)

  • Enhanced GNN-based detection models
  • Real-time blockchain monitoring
  • Advanced risk scoring algorithms
  • API rate limiting and quota management

Phase 3 (Planned)

  • Multi-chain support (Polygon, BSC, Arbitrum)
  • Mobile application (iOS/Android)
  • Regulatory reporting features
  • Webhook support for external systems
  • Machine learning model retraining pipeline

⭐ Star this repository if you find it helpful!

GitHub stars GitHub forks GitHub watchers


Built with ❀️ by the CryptoGuard Team

πŸ” Making Blockchain Safer, One Transaction at a Time


Last Updated: February 2026
Version: 1.0.0

About

Advanced blockchain forensics and regulatory technology platform designed to detect and prevent money laundering in digital wallets.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages