Inspiration
Voluntary carbon markets (VCMs) and climate offset registries suffer from a fundamental trust deficit: widespread double-counting, opaque manual audits, and unverifiable IoT telemetry data. Traditional Measurement, Reporting, and Verification (MRV) processes take months, cost millions, and rely on human auditing processes that frequently fail to detect fraudulent or duplicated environmental credit claims.
We realized that for autonomous climate networks and decentralized environmental systems to operate safely, we don't just need better models—we need deterministic execution guardrails. We built EKChain as a headless, automated cryptographic audit engine for the IEEE ClimateChain ecosystem to bridge the gap between raw, distributed IoT data and tamper-proof compliance ledgers.
What it does
EKChain is an enterprise-grade automated audit engine that ingests, verifies, and cryptographically packages carbon capture logs and IoT telemetry in real time.
Key capabilities include:
Automated Data Ingestion & Validation: Ingests raw carbon capture telemetry and evaluates every payload against strict anti-double-counting rule sets.
Merkle Root Cryptography: Aggregates verified state updates into SHA-256 Merkle trees and builds tamper-proof state trie transactions.
Instant Adversarial Rejection: Detects corrupted hashes, tampered logs, or duplicate credit claims at the verification gate, instantly halting invalid state transitions and appending precise line-trace references to an immutable log.
Institutional Ledger Output: Generates cryptographically chained JSON ledger payloads and automated state pushes ready for institutional compliance and registry integration.
Dual-Pane Real-Time Monitoring: Features a high-fidelity Rich/Textual TUI interface for operational oversight while isolating raw execution logs to a dedicated audit stream (alade_execution.log) to guarantee zero display bleed.
How we built it
EKChain was engineered with a modular, high-reliability architecture designed for security and speed:
Core Engine & CLI: Built using Python, leveraging custom CLI modules (ekchain investigate) configured with strict model routing (e.g., openai/mistral-small via LiteLLM proxy integration).
Cryptographic Verification Pipeline: Implemented deterministic SHA-256 hashing and Merkle tree generation modules to construct verifiable state tries for every audit run.
Dual-Stream Logging & TUI: Designed a Rich/Textual Terminal User Interface (TUI) styled in Dracula palette and Cascadia Code typography. We decoupled raw logging console handlers, routing stream outputs into alade_execution.log to preserve a clean dashboard structure during split-pane live viewing.
Challenges we ran into
Terminal Console Bleed & Log Decoupling: Standard logging outputs repeatedly bled raw text and traceback errors into the Rich/Textual TUI display layer. We had to refactor the root logger pipeline, stripping default console handlers and redirecting execution outputs directly into isolated audit files without dropping live streaming performance in split-pane views.
Environment & Path Alignment : Managing proxy configurations, LiteLLM dependency environments, and strict path references (config/mistral.litellm.yaml) across isolated CLI commands required fine-tuning error handling and local virtual environment configurations.
Deterministic State Verification: Ensuring that invalid credit claims or tampered telemetry were rejected immediately before Merkle tree aggregation without crashing the active worker execution threads.
Accomplishments that we're proud of
Zero-Bleed Split TUI: Successfully created an executive-grade dual-pane terminal interface that separates human-readable operational dashboards from raw cryptographic audit trails.
Bulletproof Anti-Double-Counting: Built a verification gate that reliably catches corrupted data packages and generates immediate trace references.
Institutional Visual & Terminal Standard: Delivered a cohesive visual experience—from enterprise-grade presentation slides down to 18pt Cascadia Code Dracula terminal themes.
What we learned
Auditing Requires Strict Separation: Mixing operational displays with execution logs compromises both readability and audit integrity. Clean stream isolation is non-negotiable in institutional software.
Deterministic Guardrails for AI & IoT: AI agent architectures and automated workflows in high-stakes domains (like climate compliance) cannot rely on probabilistic outputs alone; they must be bound by cryptographic verification layers.
What's next for Ek-Chain
Hardware Trust Anchors: Integrating hardware-level cryptographic signatures (ECDSA) directly into IoT sensors at the device level before data reaches the ingestion pipeline.
Direct dMRV Registry Connectors: Expanding automated webhook and API integrations for live protocols such as Toucan, Verra, and Puro.earth.
Hosted Node & On-Chain Pushes: Developing a managed infrastructure layer to automatically commit verified Merkle roots directly to immutable decentralized ledgers (e.g., Polygon, Ethereum, IPFS) for continuous compliance reporting.
Built With
- blockchain
- cli
- python
- ruff
Log in or sign up for Devpost to join the conversation.