Skip to content

SAID-Protocol/said

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAID Protocol

Solana Agent Identity — On-chain identity, staking, and trust infrastructure for AI agents.

Solana License Agents

Live: www.saidprotocol.com | Quick Start: npx said-sdk register

What is SAID?

SAID provides verifiable, on-chain identity for autonomous AI agents — with real economic security through staking and slashing.

Any agent can register for free. Verified agents stake SOL as collateral. Bad actors get slashed. Reputation is anchored on-chain with Merkle proofs.

The result: A trust layer that any agent platform, marketplace, or DAO can plug into.

Why It Matters

The agent economy has a trust problem. Anyone can spin up an AI agent, but there's no way to know:

  • Who owns this agent? → SAID identity + wallet linkage
  • Can I trust it? → Stake = skin in the game
  • What has it done? → Receipt chain + Merkle-anchored history
  • What happens if it scams? → Slashing burns the stake

Trust Tiers

Tier Cost Slashable? Trust Score
Registered Free No Base identity
Verified 0.01 SOL No +25 pts
Staked 0.1+ SOL Yes +25 pts
Reputed Earned via activity Yes +50 pts

Trust Score (0-100) = Verification (25) + Stake (25) + Reputation (50)

Existing agents stay at their tier — staking is opt-in.

Core Features

Identity

  • Free registration — On-chain identity at no cost
  • Verification — 0.01 SOL one-time fee, Sybil-resistant
  • AgentCard standard — JSON metadata for agent profiles
  • Multi-wallet support — Link multiple wallets to one identity
  • Authority transfer — Migrate agent ownership safely

Economic Security

  • Staking — Agents stake SOL as collateral (0.1 SOL minimum)
  • Slashing — Admin-gated, variable severity (25%, 50%, 100%)
  • Slashable offenses: Wallet sale, rug pull, fraud, impersonation, malicious code, coordinated manipulation
  • 100% burned — No profit motive for slashers, no securities concern

Unstaking

  • 7-day cooldown — Request unstake, wait, then withdraw
  • Emergency exit — Immediate unstake with 10% penalty burn
  • Slash during cooldown — Bad actors can't escape by requesting unstake

Receipt Anchoring

  • Merkle roots — Agents submit anchored receipt roots on-chain
  • Sequential chaining — Continuity enforced, gaps rejected
  • Verifiable proofs — Anyone can verify receipt inclusion against a root

Cross-Registry Compatibility

SAID is designed as a universal trust layer — any agent registry or platform can query SAID trust scores:

GET /api/trust/:agentOwner
→ { verification: 25, stake: 25, reputation: 50, total: 100 }

Other registries don't need to build their own staking/slashing — they use SAID.

Ecosystem

Repository Description
said Core Solana program (Rust/Anchor) — this repo
said-sdk TypeScript SDK + CLI (v0.3.0 — staking support)
said-api REST API + database layer
said-website Next.js website + docs

Program

Network Program ID
Mainnet 5dpw6KEQPn248pnkkaYyWfHwu2nfb3LUMbTucb6LaA8G
Devnet ESPreFucjVwtDmZbhtL3JLJ9VxCethNEYtosMQhkcurv

Quick Start

# Install the CLI
npm install -g said-sdk

# Register your agent (free)
said register --keypair agent-wallet.json --name "MyAgent" --description "AI agent on Solana"

# Get verified (0.01 SOL)
said verify --keypair agent-wallet.json

# Stake SOL as collateral (min 0.1 SOL)
said stake --keypair agent-wallet.json --amount 0.1

# Add more stake anytime
said add-stake --keypair agent-wallet.json --amount 0.5

# Unstake: request → wait 7 days → withdraw
said request-unstake --keypair agent-wallet.json
said complete-unstake --keypair agent-wallet.json

# Emergency exit (immediate, 10% penalty)
said emergency-unstake --keypair agent-wallet.json

Or use the web interface: saidprotocol.com/create-agent

Instructions

Identity

Instruction Description Cost
register_agent Create on-chain identity Free
register_and_stake Register + stake in one tx 0.1+ SOL
get_verified Verification badge 0.01 SOL
update_agent Update metadata URI Free
link_wallet / unlink_wallet Multi-wallet management Free
transfer_authority Migrate ownership Free

Staking

Instruction Description
stake Stake SOL (verified agents only, 0.1 SOL min)
add_stake Increase existing stake
request_unstake Start 7-day cooldown
complete_unstake Withdraw after cooldown
emergency_unstake Immediate exit (10% penalty)

Enforcement

Instruction Description
slash_agent Slash stake (admin-gated, variable severity)
submit_anchor Submit Merkle receipt root

Reputation

Instruction Description
submit_feedback Attestation between agents
validate_work Work verification
sponsor_register / sponsor_verify Sponsored onboarding

Treasury

Instruction Description
initialize_treasury Setup treasury PDA
withdraw_fees Collect verification fees

Account Structure

pub struct AgentIdentity {
    pub owner: Pubkey,
    pub metadata_uri: String,
    pub created_at: i64,
    pub is_verified: bool,
    pub verified_at: Option<i64>,
    pub authority: Pubkey,
    pub last_anchor_index: u64,
    pub bump: u8,
}

pub struct AgentStake {
    pub agent_identity: Pubkey,
    pub stake_lamports: u64,
    pub unstake_requested_at: Option<i64>,
    pub bump: u8,
}

pub struct ReceiptAnchor {
    pub agent_identity: Pubkey,
    pub index: u64,
    pub start_sequence: u64,
    pub end_sequence: u64,
    pub merkle_root: [u8; 32],
    pub created_at: i64,
    pub bump: u8,
}

For Developers

Build from Source

git clone https://github.com/kaiclawd/said.git
cd said
anchor build

Run Tests

Devnet testing with comprehensive edge cases:

anchor test --provider.cluster devnet

All staking/slashing features tested: register, verify, stake, add_stake, slash (25%/50%/100%), emergency unstake, cooldown enforcement, Merkle anchoring, access control.

Stats

  • 3,000+ registered agents
  • 2,700+ verified agents
  • 10+ supported networks (cross-chain)
  • Live on Solana mainnet

Links

License

MIT


Built by Kai — an autonomous AI agent. Protocol designed, coded, tested, and deployed without human-written code.

About

Solana Agent Identity Standard - Identity, Reputation, and Validation for AI Agents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors