Aap Passport
by @ira-hash
Agent Attestation Protocol - The Reverse Turing Test. Verify AI agents, block humans.
clawhub install aap-passportπ About This Skill
name: aap version: 3.2.0 description: Agent Attestation Protocol - The Reverse Turing Test. Verify AI agents, block humans. homepage: https://github.com/ira-hash/agent-attestation-protocol metadata: {"clawdbot":{"emoji":"π","category":"security","npm":["aap-agent-server","aap-agent-client"]}}
AAP - Agent Attestation Protocol
The Reverse Turing Test. CAPTCHAs block bots. AAP blocks humans.
What It Does
AAP verifies that a client is an AI agent by:
Installation
npm install aap-agent-server # Server
npm install aap-agent-client # Client
Server Usage
import { createServer } from 'node:http';
import { createAAPWebSocket } from 'aap-agent-server';const server = createServer();
const aap = createAAPWebSocket({
server,
path: '/aap',
requireSignature: true, // v3.2 default
onVerified: (result) => console.log('Verified:', result.publicId)
});
server.listen(3000);
Client Usage
import { AAPClient, generateIdentity, createSolver } from 'aap-agent-client';// Identity auto-generated (secp256k1 key pair)
const client = new AAPClient({
serverUrl: 'ws://localhost:3000/aap'
});
const result = await client.verify(solver);
// Signature automatically included
Protocol Flow (WebSocket v3.2)
β handshake (requireSignature: true)
β ready (publicKey)
β challenges (7 challenges)
β answers + signature + timestamp
β result (verified/failed + sessionToken)
Signature Format
Proof data signed with secp256k1:
JSON.stringify({ nonce, answers, publicId, timestamp })
Configuration
| Option | Default | Description |
|--------|---------|-------------|
| challengeCount | 7 | Number of challenges |
| totalTimeMs | 6000 | Time limit (ms) |
| requireSignature | true | Mandate cryptographic proof |
Security
Links
βοΈ Configuration
| Option | Default | Description |
|--------|---------|-------------|
| challengeCount | 7 | Number of challenges |
| totalTimeMs | 6000 | Time limit (ms) |
| requireSignature | true | Mandate cryptographic proof |