Identity bridge for Machine Payments Protocol (MPP) — verifiable agent identity via AgentLair DIDs and Ed25519 attestations
agentlair-mpp-identity-bridge is an early-stage TypeScript project in the AI payments / x402 ecosystem. It currently has 0 GitHub stars and 0 forks.
A working prototype demonstrating verifiable agent identity for Machine Payments Protocol (MPP).
MPP credentials have a source field — the agent's identity slot. It accepts DIDs (decentralized identifiers). But nobody verifies it.
The server checks: Was the challenge valid? Was the payment real? But "is this agent who they say they are?" — nobody asks. The source field is a sticky note, not a signature.
Stripe SPT payments don't even set source at all. Agents are completely anonymous.
AgentLair provides DID-based identity, Ed25519 keypairs, encrypted credential storage (Vault), and audit trails. This prototype connects AgentLair's identity stack to MPP's source field via cryptographic attestations.
Flow:
did:web:agentlair.dev:agents:<id>did|timestamp|challengeId with Ed25519 keysourcebun install
bun run src/demo.ts
Output:
Flow A — Without identity:
No identity attestation in credential
DID is present but NOT VERIFIED
Result: { data: "Basic data for anonymous payment", identity: { verified: false } }
Flow B — With AgentLair identity:
Agent identity VERIFIED:
DID: did:web:agentlair.dev:agents:agent-007
Email: [email protected] (verified: true)
Score: 50/100
Result: { data: "Premium data for verified agent", identity: { verified: true } }
Same protocol. Same payment. Different outcomes based on verifiable identity.
src/
agentlair-identity.ts # DID creation, Ed25519 signing, verification, Vault bridge
demo.ts # End-to-end MPP server + client demo
agentlair.dev/.well-known/did.json — DID Document endpointGET /v1/agents/{id}/identity — public DID resolution API@agentlair/mpp-identity — NPM package (client attestation + server middleware)mpp_pay_with_identity — MCP tool for Claude, GPT, and other agent frameworksMIT
Built by AgentLair — identity infrastructure for AI agents.
TypeScript Interface for Machine Payments Protocol
Alephant is an open-source AI Agent Gateway for routing, tracking, and controlling LLM usage across AI agents, members, and workflows, and for publishing agent capabilities as paid endpoints with x402 and MPP payment rails.
Specifications for the Machine Payments Protocol - powered by the "Payment" HTTP authentication scheme
Rust SDK for the Machine Payments Protocol
Website for the Machine Payments Protocol
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.