🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

agentkey

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agentkey

RFC 9421 Ed25519 signing primitives for AI agent authentication. Generate keypairs, sign HTTP requests, and verify signatures in the Trusted Agent Protocol (TAP) format.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

agentkey

RFC 9421 Ed25519 signing primitives for AI agent authentication. Part of the ArisPay Trusted Agent Protocol (TAP) toolkit.

Install

npm install agentkey

Usage

import { generateKeyPair, signRequest, verifySignature, buildSignatureBase } from 'agentkey';

const { publicKey, privateKey, keyId } = generateKeyPair();

const { signatureInput, signature } = signRequest({
  authority: 'merchant.com',
  path: '/checkout',
  keyId,
  privateKey,
  tag: 'agent-payer-auth',
});

// On the verifier:
const sigParams = signatureInput.replace(/^sig2=/, '');
const signatureB64 = signature.match(/^sig2=:([^:]+):$/)![1];
const base = buildSignatureBase('merchant.com', '/checkout', sigParams);
const ok = verifySignature(base, signatureB64, publicKey);

What is TAP?

The Trusted Agent Protocol is the signature format payment networks (Visa, Mastercard) use to identify authorized AI agents transacting on behalf of a consumer. This package ships the signing/verification primitives you need to build TAP-compliant clients and servers.

License

MIT

Keywords

ai-agent

FAQs

Package last updated on 16 Apr 2026

Did you know?

Socket

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.

Install

Related posts