
Building a Bot Reputation System with ZK Attestations and P2P Gossip
The problem AI agents calling your APIs have no behavioral history. A spammer looks identical to a legitimate user. Soulprint's bot reputation system gives every agent a persistent 0-20 point behavioral score. Architecture Total Score (0-100) = Identity (0-80) + Reputation (0-20) Reputation starts at 10 (neutral) and moves with attestations. Attestations An attestation is an Ed25519-signed statement from a verified service: interface BotAttestation { issuer_did : string ; // service DID (score >= 60 required) target_did : string ; // bot being rated value : 1 | - 1 ; // reward or punishment context : string ; // 'spam-detected', 'payment-completed'... timestamp : number ; sig : string ; // Ed25519 — bound to issuer_did } Creating one: import { createAttestation , verifyAttestation } from ' soulprint-core ' ; const att = createAttestation ( serviceKeypair , botDid , + 1 , ' trip-completed ' ); console . log ( verifyAttestation ( att )); // true // Tamper with it: const fake = { ... att
Continue reading on Dev.to JavaScript
Opens in a new tab



