Clarity smart contracts implementing the ERC-8004 agent identity, reputation, and validation protocol for Stacks blockchain (v2.0.0).
Cross-chain standard — same protocol on Ethereum (Solidity), Solana (Rust), and Stacks (Clarity).
| Contract | Explorer |
|---|---|
identity-registry-v2 |
view |
reputation-registry-v2 |
view |
validation-registry-v2 |
view |
identity-registry-trait-v2 |
view |
reputation-registry-trait-v2 |
view |
validation-registry-trait-v2 |
view |
| Contract | Explorer |
|---|---|
identity-registry-v2 |
view |
reputation-registry-v2 |
view |
validation-registry-v2 |
view |
identity-registry-trait-v2 |
view |
reputation-registry-trait-v2 |
view |
validation-registry-trait-v2 |
view |
| Contract | Purpose |
|---|---|
identity-registry-v2 |
Agent registration as SIP-009 NFT, metadata, agent wallet (dual-path auth) |
reputation-registry-v2 |
Client feedback with signed values, permissionless + self-feedback guard |
validation-registry-v2 |
Third-party validation requests with progressive responses |
Three trait contracts (contracts/traits/*-v2.clar) define interfaces for cross-contract conformance.
npm install # Install dependencies
npm test # Run 149 tests (Vitest + Clarinet SDK)
clarinet check # Type-check Clarity contractsAgents get globally unique IDs following CAIP-2:
stacks:<chainId>:<registry>:<agentId>
- Mainnet:
stacks:1 - Testnet:
stacks:2147483648
CLAUDE.md— Development guide, conventions, and architectureAGENTS.md— LLM-friendly contract API reference and integration guide