Skip to content
L

LedgerZero

Concurrency is Currency

Created on 25th January 2026

•

L

LedgerZero

Concurrency is Currency

The problem LedgerZero solves

LedgerZero addresses the critical vulnerability in modern digital banking: the trade-off between speed and security.

In the current landscape, financial institutions face a dilemma:

Fast Transactions: Skip heavy security checks to ensure instant payments, but risk letting fraud slip through.

Secure Transactions: Perform deep manual or batch analysis, but force users to wait or face "false positive" blocks.

Existing systems operate on static rules (e.g., "Block if amount > $10,000") which sophisticated fraudsters easily bypass using Money Mule Rings (layering small amounts across many accounts).

LedgerZero solves this by automating the "Bank Detective" in real-time.

  1. Stops "Invisible" Fraud Rings
    Problem: Fraudsters use networks of "clean" accounts to hide the origin of dirty money. A simple rule engine sees a valid user sending $500.

Solution: LedgerZero's Graph Neural Network (Layer 2) sees the topology. It recognizes that this $500 is part of a "Fan-In" pattern where 50 people are sending money to one central node, instantly flagging the Mule Ring.

  1. Reduces False Positives (Customer Friction)
    Problem: Legitimate users often get blocked when traveling or making large purchases because they tripped a rigid rule.

Solution: The RL "Smart Judge" (Layer 3) considers the entire context. If a user with a 10-year clean history makes a high-value transaction, the agent can choose to Challenge (ask for Step-Up Auth) rather than Block, preserving the user experience.

  1. Explains the "Why" (Automated Forensics)
    Problem: When AI blocks a transaction, support teams often can't explain why. "Computer says no" leads to frustrated customers and regulatory fines.

Solution: The GraphRAG Engine (Layer 4) generates a human-readable forensic report (e.g., "Blocked because the payee shares a device ID with a known blacklist account and received 50 rapid transfers today"). This empowers support teams to resolve tickets in seconds, not days.

  1. Adapts to New Threats Instantly
    Problem: Writing new rules for new fraud trends takes weeks of analysis and deployment.

Solution: The system is Self-Learning. Every decision feeds back into the database. If a new fraud pattern emerges, the RL agent adapts its policy automatically without needing code changes.

Use Cases
Real-Time Payment Switches: Secure UPI, ACH, or Wire transfers with sub-millisecond latency.

Neo-Banks & FinTechs: protect user deposits without hiring massive fraud operations teams.

Crypto Exchanges: Detect layering and money laundering attempts before funds leave the platform.

E-Commerce Gateways: Prevent chargeback fraud by analyzing buyer device and network history.

Challenges we ran into

Challenges I Ran Into

  1. The "Split Model" Deployment Nightmare

The Bug
When deploying our Reinforcement Learning model to the Java Spring Boot application, the system kept crashing with ONNXRuntimeException. We discovered that our PyTorch export process had split the model into two files: the architecture (.onnx) and the weights (.onnx.data). When the Java app loaded the model from the JAR file, it couldn't locate the external weight file due to classpath isolation.

The Solution
We had to write a custom Python script to "pack" the model. By loading the split model in Python and re-saving it with onnx.save_model(..., save_as_external_data=False), we merged the weights back into a single binary. This allowed us to embed the 8KB model directly into the Java application, making deployment bulletproof.

  1. The "Empty Graph" Training Crash

The Bug
During the first run of our Graph Neural Network training pipeline, the script instantly failed with KeyError: 'risk_score'. The error message was cryptic, pointing to a Pandas DataFrame column access.

The Solution
We realized that our Neo4j database was completely empty because the synchronization service hadn't run yet. The GNN was trying to train on "nothing." We built a dedicated seed_neo4j.py utility that manually injects our CSV training data into the graph, ensuring the topology (Mule Rings and Device sharing) exists before the AI tries to learn from it.

  1. The "Join Bomb" Performance Bottleneck

The Hurdle
Initially, we tried to detect "Money Mule Rings" using recursive SQL queries in PostgreSQL. As the dataset grew, queries checking for 3-hop connections (User A → B → C → Fraudster) started taking seconds to execute, killing our sub-millisecond latency target.

The Solution
We fundamentally changed our architecture. We introduced a Hybrid Database Strategy:

PostgreSQL handles the Ledger (Balances/ACID compliance).
Neo4j handles the Intelligence.
By projecting the transaction data into a Graph Database, we converted expensive joins into pointer-chasing traversals, restoring real-time performance.

Discussion

Builders also viewed

See more projects on Devfolio