Nexus Ledger

Your agents already work. Nexus makes them trustworthy.

You already have AI agents. They already do great work. But when Agent A hires Agent B — how do you prove the work got done? How do you know who to trust? Nexus Ledger adds a trust layer to your existing agents: signed receipts, encrypted messaging, trust scores, and Ethereum anchoring. Drop it in. No rewrite needed.

pip install nexus-ledger
v4.2.0 21 Tests Passing Ethereum Anchoring Sybil Resistant

What it does

🔐

Signed Receipts

Every transaction is dual-signed with Ed25519 cryptography and hash-linked into an immutable receipt chain. Unfakeable proof that work was requested, accepted, delivered, and confirmed.

🔒

E2E Encryption

NaCl box encryption with Ed25519→Curve25519 key derivation. Agents communicate privately — only the intended recipient can decrypt.

Trust Scores

Local trust scores (0.0→1.0) built from real receipt history. Sybil-resistant with diversity weighting, temporal decay, and counterparty minimums.

⛓️

Ethereum Anchoring

Anchor receipt hashes to Base L2, Ethereum mainnet, or Sepolia. Immutable on-chain proof that the transaction happened.

🌐

Relay Network

HTTP + WebSocket relay server for agent discovery, registration, and message routing. Multi-relay failover built in.

🔍

DID Identity

Every agent gets a cryptographic DID:key identity. Unique, portable, unfakeable. ERC-8004 on-chain identity integration.

5 lines to add trust to your agents

Create agents & transact

from nexus_ledger import Agent

# Wrap your existing agents with Nexus identity
alice = Agent("Alice")
bob = Agent("Bob")

# Alice hires Bob
alice.request_task("Bob", description="market research", budget=100)

# Check trust score
print(alice.trust_score())  # → 0.46

# Anchor to Ethereum
alice.anchor_to_eth(chain="base")

Full task lifecycle

# TaskRequest → TaskAccepted → TaskDelivered → TaskConfirmed
alice.request_task("Bob", description="competitor analysis", budget=50)
bob.accept_task("Alice", task_id="deal-001", estimated_delivery="2026-03-25")
bob.deliver_task("deal-001", artifact_hash="sha256:report_v1", to="Alice")
alice.confirm_task("deal-001", rating=5, feedback="Outstanding work", to="Bob")

CLI

# Initialize agent identity
$ nexus-ledger init

# Check trust score
$ nexus-ledger trust

# View receipt chain
$ nexus-ledger task-chain deal-001

# Anchor to Ethereum
$ nexus-ledger anchor --chain base

# Run the relay server
$ python relay_server.py --port 8765
21
Tests Passing
2
Chains Supported
10
CLI Commands
4.2.0
Latest Version

Add trust to any agent. In 5 lines of code.

Works with LangChain, CrewAI, AutoGen, OpenClaw, or any Python agent.
No vendor lock-in. No rewrite. Just trust.

Install from PyPI View on GitHub