JouleBridgeDocs

Overview

Bridge Kernel documentation — the deterministic, tamper-evident event ledger runtime for energy settlement.

What is Bridge Kernel?

Bridge Kernel is a deterministic, tamper-evident event ledger runtime. It ingests raw energy telemetry, generates cryptographic proofs, evaluates policy rules, and persists verified events to an immutable ledger.

What problem it solves

Distributed energy settlement depends on unverified meter reads and manual reconciliation. Bridge Kernel adds cryptographic proof from event capture to settlement, so operations, finance, and compliance teams can trust what actually happened at the device.

End-to-end flow

  1. Event arrives from an adapter (Modbus, SunSpec, OCPP, DNP3, webhook).
  2. Runtime checks timestamp and replay window.
  3. Event is converted to canonical JSON (sorted keys, no whitespace, UTF-8).
  4. SHA-256 hash is computed.
  5. Ed25519 signature is generated and verified.
  6. Policy engine decides allow or deny.
  7. If allowed, event plus proof are stored in the SQLite ledger.
  8. Event is marked unsynced until published to peers.
  9. Metrics, logs, and health are updated.

Major components

ModulePurpose
configSettings and validation
identitySigning key lifecycle and DID
halHardware abstraction (software or TPM signing)
proofCanonicalization, hashing, signing, verification
senseInput adapters and event normalization
runtimeCentral orchestrator
storeSQLite ledger and sync state
p2pPeer synchronization protocol
policyAllow/deny rules before persistence
supervisorSigned policy stage/promote/rollback
observabilityMetrics, event logs, degraded status

Documentation

Get Started

Core Concepts

  • Architecture — Three-tier model and module chain.
  • Proof System — Canonicalization, hashing, signing, verification.
  • Policy Engine — Allow/deny rules and supervisor workflow.
  • Adapters — Protocol adapters and event normalization.
  • P2P Sync — File-backed peer synchronization.

Configuration

Operations

Reference

Examples