Track 4 · Founders Garage · Devcon 8 Mumbai

Verifiable trust for
autonomous libp2p agents

libp2p answers who is this peer? — AgenTrust answers what may this peer do? Ed25519 capability chains, offline verification, GossipSub revocation. No central authority.

View on GitHub Read Paper Draft See Benchmarks
5
Experiment Scenarios
27
Unit Tests
8
Max Delegation Depth
5
Docker Containers
100%
Forgery Rejection
The Gap

libp2p knows who. Not what.

libp2p's Noise protocol + PeerID provides cryptographic identity — but authorization is explicitly left to the application layer. AgenTrust fills that gap.

🔑

Identity — libp2p (solved)

PeerID derived from Ed25519 keypair. Noise handshake authenticates the channel. You know exactly who you're talking to.

Provided by libp2p
⚡

Authorization — application layer (the gap)

Who may this peer act on behalf of? How do you delegate and revoke permissions in a decentralized mesh without calling home?

AgenTrust fills this
🤖

The Agent Problem

Autonomous agents can't round-trip to an authority for every permission check. They need offline-verifiable delegation chains and real-time revocation via gossip.

Research prototype

System Design

Architecture: Trust as infrastructure

Four primitives layered on top of what libp2p already provides — no new transport, no new crypto library.

LIBP2P FOUNDATION PeerID + Noise GossipSub Peer Discovery Secure Channels Multiplexing ① Issue Ed25519 capability bound to PeerID ② Delegate Chain depth 1–8 A → B → … → H ③ Verify Local keys only No issuer round-trip ④ Revoke Issuer-signed event via GossipSub topic TrustManager All trust decisions flow through one verifiable module revoke registry AgenTrust — application-layer authorization on libp2p

Token flow

Issue capability Delegate (≤ depth 8) Verify offline Revoke via gossip capability.js delegation.js TrustManager.verify() revocation.js + GossipSub

5 Measured Scenarios

What was tested & proven

Every claim is backed by a JSON result file in /results. No unverified assertions.

#ScenarioWhat it provesKey metricStatus
01Delegation sweepVerifier never connected to issuer at any pointverifierConnectedToIssuer: false✓ MEASURED
02Depth boundaryDepths 1–8 accepted; depth 9 rejectedPer-depth verifyMs + rejection proof✓ MEASURED
03Sybil / forgerySpliced chains, tampered tokens, stolen grants all rejectedForgery acceptance rate: 0%✓ MEASURED
04Chain integrityModified intermediate node invalidates entire chainAll negative test cases caught✓ MEASURED
05Concurrent revocationSimultaneous revoke events via GossipSub meshpropagationMs — local & Docker mode✓ MEASURED

Captured evidence

Measured Results and Evidences.

Docker Desktop showing runner, verifier, issuer, delegatee, attacker, and bootstrap, with a 5/5 scenario pass
1 — Mesh running
Six containers up. The runner log ends at Results: 5/5 scenarios passed.
docker compose startup log with bootstrap, issuer, verifier, delegatee, attacker, and runner heartbeats
2 — Compose startup
Each role subscribes, then scenario 01 issues and verifies chains as VALID.
npm test: 2 suites passed, 27 tests passed
3 — Unit tests
Jest: capability.test.js and delegation.test.js, 27 passed.
Folded experiment JSON with all five scenarios passed and summary 5 of 5
4 — Experiment JSON
Local run, scenarios 01–05 each passed, summary allPassed true.
Depth 8 valid true, depth 9 valid false because chain depth exceeds maximum 8
5 — Depth-9 rejection
Depth 8 is valid. Depth 9 is rejected: chain depth exceeds maximum 8. Verifier stayed disconnected from the issuer.
propagationMs median 2.028 in local mode and 4.863 in docker mode
6 — Revocation propagation
Scenario 02 propagationMs. Local median 2.028 ms. Docker mesh median 4.863 ms.
Docker Images row for agentrust-node:local, 432.76 MB, created 18 hours ago
7 — Image
agentrust-node:local, 432.76 MB.
Scenario 03 forgery, theft, and non-delegatable extension rejected, and scenario 04 splice checks rejected
8 — Forgery and splice rejection
Scenario 03 rejects forgery, theft, and a non-delegatable extension. Scenario 04 rejects broken linkage, a wrong parent, a non-delegatable hop, and a tampered action. The legitimate chain still verifies.

Benchmark Results

Performance numbers

Local figures are 5-run medians from results/bench-summary.json. Docker propagation is the canonical mesh run.

Verify latency by delegation depth

Local in-process mode · median of per-run medians
Depth 10.081 ms
Depth 20.135 ms
Depth 40.236 ms
Depth 60.323 ms
Depth 80.416 ms
Depth 9 (rejected)0.004 ms

Security scenario outcomes

Scenario 03 — all attack types tested
Valid chain accept rate100%
Forgery rejection100%
Token theft rejection100%
Chain splice rejection100%
Non-delegatable extension blocked100%

Revocation propagation

Scenario 02 · GossipSub · median propagationMs
Local mode (5-run median)2.328 ms
Docker mesh (canonical run)4.863 ms

Test suite — 27 unit tests

npm test · Mocha test runner
Capability issuance✓
Delegation chain logic✓
Revocation handling✓
Negative / attack coverage✓

Docker Testnet

5-container distributed mesh

Real inter-container GossipSub. Real libp2p Noise handshakes between separate OS processes. Not simulated.

Container roles

R
runner
HTTP control plane (port 9000). Orchestrates issue/delegate/verify/revoke commands across the mesh. Not part of the trust protocol itself.
I
issuer
Root authority. Issues Ed25519 capability tokens bound to PeerIDs. Signs revocation events onto the GossipSub topic.
D
delegatee
Receives delegated capabilities and forwards grants further. Tests depth enforcement at each hop.
V
verifier
Verifies chains using only issuer public keys — no network call back to issuer. Listens to the revocation GossipSub topic.
A
attacker
Attempts forgery, chain splicing, token theft. 100% of attempts rejected by TrustManager — measured in scenario 03.

Reproduce it yourself

git clone https://github.com/Nkovaturient/agentrust-libp2p && cd agentrust-libp2p
npm install && npm test
npm run experiment
docker compose -f docker/docker-compose.yml up --build --abort-on-container-exit
Docker Images row for agentrust-node:local, 432.76 MB
Built image
agentrust-node:local, 432.76 MB, from this Compose build.

Research Paper

Technical paper draft

Living document — §6 reports only measured results. Claims not backed by measurement are moved to §7 Future Work.

Abstract — AgenTrust: Agentic Trust Structures for libp2p

libp2p provides authenticated peer identity through PeerID and Noise, but places authorization entirely in the application layer. As autonomous agent nodes increasingly coordinate over peer-to-peer meshes, the absence of a standard verifiable authorization primitive creates a critical gap: agents cannot delegate permissions, verify capabilities offline, or revoke grants without introducing a central authority.

We present AgenTrust — an application-layer capability system built exclusively on primitives libp2p already ships. AgenTrust issues Ed25519 capability tokens bound to PeerIDs, supports transitive delegation chains up to depth 8, enables offline verification without round-trips to the original issuer, and propagates revocations as issuer-signed events on GossipSub.

We evaluate the system across five reproducible experiment scenarios on both a local in-process harness and a five-container Docker testnet, reporting per-depth verification latency, revocation propagation timing, and comprehensive attack rejection rates. Our contribution is not new cryptography but integration evidence: the same Ed25519 keys used for PeerID can anchor a UCAN-inspired capability chain, and the same GossipSub mesh used for consensus can carry revocations — yielding trust-as-infrastructure for agent-native libp2p with no additional network dependencies.

§1–3 — Problem & Model

Identity vs authorization split. Threat model: forgery, replay, Sybil, delegation abuse. Capability token format and semantics.

Draft complete

§4–5 — Protocol & Implementation

Issue / delegate / verify / revoke protocol spec. TrustManager design. GossipSub revocation propagation path.

Draft complete

§6 — Evaluation

Reports only measured results. Scenarios 01–05. Per-depth timings. Docker mesh propagation. All raw JSON in /results.

Measured results

§7 — Future Work

ZK proofs for chain privacy. Persistent revocation store. WAN-scale partition testing. Key rotation. Sybil flood resistance.

Honest scope
Read paper draft on GitHub →

Research Honesty

What we prove vs future work

Protocol researchers value precision about scope. Here is ours, plainly.

✓ Proven in this prototype

✅
Depth 1–8 accepted, depth 9 rejected
Measured per-depth timings in scenario 02.
✅
Offline verification (no issuer dial)
verifierConnectedToIssuer: false before and after all sweeps.
✅
Forgery / splice / theft rejection
100% rejection across all attack types — scenario 03.
✅
GossipSub revocation propagation
Measured propagationMs both local and Docker mesh mode.
✅
Real multi-process Docker mesh
5 separate containers, real Noise handshakes between them.

🔬 Future Roadmap

🔬
ZK proofs for chain privacy
Full chain is visible to verifier. ZK is listed in §7.
🔬
Sybil flood / issuance policy
Forgery fails; unlimited fresh PeerID flooding is not tested.
🔬
Key rotation / identity continuity
Key rotation breaks old tokens — documented limitation.
🔬
WAN / adversarial conditions
Docker proves multi-process; not continent-scale partitions.
🔬
Persistent revocation store
In-memory registry only. Persistence across restarts is future work.

Founder

Built by

N
Neha Kumari
Technical Developer · AgenTrust-Libp2p

Building application-layer authorization infrastructure for libp2p — filling the gap between cryptographic identity (what libp2p provides) and verifiable capability delegation (what agentic P2P systems actually need).