HederaEdge

DePIN edge AI gateway verifying zero-data-egress inference on Hedera via HCS, HTS & x402.

HederaEdge

Created At

ETHGlobal Mumbai

Project Description

Centralized cloud AI APIs (OpenAI, AWS Bedrock) create fatal vulnerabilities for enterprises and autonomous agent swarms: sensitive prompt data leaks outside enterprise firewalls, model execution is an opaque black box with zero cryptographic audit trail, and centralized billing models cannot handle high-frequency autonomous machine micropayments.

HederaEdge solves this by building a Decentralized Physical Infrastructure (DePIN) AI Security Gateway that routes inference tasks directly
to local neural silicon (Apple Silicon, Snapdragon NPUs, Jetson Orin) with absolute Zero-Data-Egress.

Key Features:
• Zero-Data-Egress Intelligence: Inference executes 100% locally on edge devices using quantized Small Language Models (Qwen 1.7B). Raw user
queries and confidential enterprise records never leave the local hardware perimeter.
• HCS-10 Cryptographic Consensus: Every completed inference computes a SHA-256 state hash and latency benchmark, permanently anchored to
Hedera Consensus Service (HCS Topic 0.0.11335841) to provide tamper-proof Proof-of-Inference (PoI).
• Tokenized SLA & Staking: Edge nodes stake native HTS $EDGE tokens (Token ID: 0.0.11336302) to guarantee uptime and receive tokenized Node
Security License NFTs (Token ID: 0.0.11336303) certifying their hardware tier.
• HSCS On-Chain Governance: Solidity smart contracts on Hedera Smart Contract Service (Contract ID: 0.0.11337652) track node reputation and
enforce automated collateral slashing for rogue or offline nodes.
• Autonomous x402 Micropayments: Autonomous AI agents seamlessly settle pay-per-call inference in native HBAR (0.05 HBAR/query) through HTTP
402 challenge negotiation without monthly subscriptions or API key leaks

How it's Made

HederaEdge is built with Next.js 15 App Router, TypeScript, Tailwind CSS, and the Hedera JavaScript SDK (@hashgraph/sdk), paired with lightweight local edge agent daemons running quantized local SLMs (Qwen 2.5/3 1.7B).

How the components fit together:
1. Hedera Consensus Service (HCS): We created HCS Topic 0.0.11335841 to publish immutable HCS-10 telemetry. Each inference generates a
cryptographic Proof-of-Inference (PoI) containing model ID, SHA-256 payload hash, node ID, and execution latency, anchored with sub-second
finality.
2. Hedera Token Service (HTS): We minted native fungible $EDGE tokens (0.0.11336302) for node rewards and compute staking, alongside unique
Node Security License NFTs (0.0.11336303) encoding hardware specs (TOPS, memory architecture) directly in on-chain metadata.
3. Hedera Smart Contract Service (HSCS): We authored and compiled a Solidity NodeSLARegistry contract (0.0.11337652) enforcing collateral
deposits, heartbeat liveness proofs, and automated slashing if latency exceeds agreed SLAs.
4. HTTP 402 (x402) Micropayment Flow: We built a custom Next.js edge middleware that intercepts inference API calls, returns an HTTP 402
challenge with cryptographic payment parameters, and verifies native HBAR TransferTransactions on Hedera before dispatching compute.

Notable "Hacky" Engineering Highlights:
• Dynamic Multi-Tenant Subdomain Tunneling: We engineered custom Next.js middleware that maps incoming dynamic subdomains directly to local
physical devices via secure reverse tunnels, enabling peer-to-peer compute routing without cloud proxy buffers.
• Zero-Egress Attestation Pipeline: The local agent computes a cryptographic state commitment locally over prompt + output weights and
transmits only the hash and execution metadata to Hedera Consensus, mathematically proving inference was completed truthfully without ever
uploading the prompt.
background image mobile

Join the mailing list

Get the latest news and updates

HederaEdge | ETHGlobal