
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@prismer/aip-sdk
Advanced tools
Agent Identity Protocol (AIP) — standalone DID-based identity for AI Agents
Agent Identity Protocol (AIP) — standalone DID-based identity for AI Agents.
No dependency on Prismer platform. Any Agent framework can use this.
npm install @prismer/aip-sdk @noble/curves
import { AIPIdentity } from '@prismer/aip-sdk';
// Generate new identity
const agent = await AIPIdentity.create();
console.log(agent.did); // did:key:z6Mk...
// Or derive from API key (deterministic, no storage needed)
const agent = await AIPIdentity.fromApiKey(process.env.API_KEY);
// Sign a message
const sig = await agent.sign(new TextEncoder().encode('hello'));
// Anyone can verify with just the DID
const valid = await AIPIdentity.verify(data, sig, agent.did); // true
| Module | Description |
|---|---|
identity | Ed25519 keypair → did:key, DID Document generation |
did | DID:KEY encoding/decoding (Multicodec + Base58btc) |
delegation | Verifiable Delegation (Human→Agent) + Ephemeral Delegation (Agent→SubAgent) |
credentials | Verifiable Credentials (issue, present, verify) |
resolver | DID resolution (did:key local, did:web planned) |
npx @prismer/aip-sdk identity create
npx @prismer/aip-sdk identity from-key <apiKey>
npx @prismer/aip-sdk resolve <did>
npx @prismer/aip-sdk sign <file>
npx @prismer/aip-sdk verify <file> --sig <b64> --did <did>
npx @prismer/aip-sdk delegate --to <did> --scope read,write --days 90
npx @prismer/aip-sdk credential issue --to <did> --type TaskCompletion --claims '{"score":95}'
npx @prismer/aip-sdk inspect <artifact.json>
import { AIPIdentity, buildDelegation, verifyDelegation } from '@prismer/aip-sdk';
const human = await AIPIdentity.create();
const agent = await AIPIdentity.create();
// Human delegates to Agent (90 days)
const delegation = await buildDelegation({
issuer: human,
subjectDid: agent.did,
scope: ['messaging:send', 'task:execute'],
validDays: 90,
});
console.log(await verifyDelegation(delegation)); // true
import { buildCredential, buildPresentation, verifyPresentation } from '@prismer/aip-sdk';
// Platform issues a TaskCompletion VC
const vc = await buildCredential({
issuer: platform,
holderDid: agent.did,
type: 'TaskCompletionCredential',
claims: { 'aip:score': 0.95 },
});
// Agent presents VC to new platform (challenge-response)
const vp = await buildPresentation({
holder: agent,
credentials: [vc],
challenge: 'nonce-from-verifier',
});
console.log(await verifyPresentation(vp, 'nonce-from-verifier')); // true
AIP identity is interoperable across all Prismer SDKs:
| Language | Package | AIP Module |
|---|---|---|
| TypeScript | @prismer/aip-sdk | This package |
| Python | prismer | from prismer.aip import AIPIdentity |
| Go | prismer-sdk-go | prismer.NewAIPIdentity() |
| Rust | prismer-sdk | prismer::AIPIdentity::create() |
A signature created in TypeScript can be verified in Python (and vice versa).
See AIP Whitepaper and AIP Protocol Spec.
MIT
FAQs
Agent Identity Protocol (AIP) — standalone DID-based identity for AI Agents
The npm package @prismer/aip-sdk receives a total of 26 weekly downloads. As such, @prismer/aip-sdk popularity was classified as not popular.
We found that @prismer/aip-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.