@add-mesh/core
v0.1.0
Published
ADD Protocol core primitives: Ed25519 identity, did:key, JCS canonicalization, and signed envelopes
Maintainers
Readme
@add-mesh/core
Identity and signed envelopes — part of the ADD Protocol (Agent Discovery, Delegation & Trust), an open overlay for the Agentic Web that sits above A2A and MCP.
Specification: ADD-CORE-00
Install
npm install @add-mesh/coreUsage
import { generateSigner, signEnvelope, verifyEnvelope } from '@add-mesh/core';
const { keyPair, signer } = generateSigner();
const envelope = await signEnvelope(signer, 'add/delegation', { hello: 'world' });
const { issuer, payload } = await verifyEnvelope(envelope);Ed25519 identities as did:key, RFC 8785 canonical JSON, and one signed
envelope type that every other layer reuses. Verification establishes only that
the holder of iss's key signed this payload — not that they were entitled
to what it requests.
Documentation
Full documentation, specifications, and runnable examples: https://github.com/das-subha123/agent-mesh-protocol
Two implementations — TypeScript and Python — are developed together and validated against the same normative test vectors, so envelopes produced by one are byte-identical to the other.
License
Apache-2.0
