starknet-identity
यह क्या करती है
यह स्किल Starknet पर AI एजेंट्स को ऑन-चेन पहचान, metadata, प्रतिष्ठा फ़ीडबैक और तीसरे पक्ष की पुष्टि के साथ पंजीकृत करने का मार्गदर्शन करती है। यह उन डेवलपर्स के लिए है जिन्हें अपने एजेंट्स के लिए ऑन-चेन सत्यापन योग्य पहचान चाहिए।
कब इस्तेमाल करें
- ✓जब आप Starknet पर AI एजेंट को ऑन-चेन पहचान के रूप में पंजीकृत करना चाहते हों।
- ✓जब आपको एजेंट का metadata अपडेट करना या उसका प्रतिष्ठा फ़ीडबैक संभालना हो।
- ✓जब आप चाहते हों कि कोई तीसरा validator एजेंट का आकलन करे।
Skill का लिंक
https://github.com/internet-court/internet-court-skill/blob/main/vendored/starknet/starknet-identity/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप मेरे AI एजेंट को ERC-8004 मानक से Starknet पर पंजीकृत कर सकते हैं, ताकि उसकी ऑन-चेन पहचान हो?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट फ़ंडेड Starknet खाते को ERC-8004 registry से जोड़ता है, फिर एजेंट को metadata के साथ NFT पहचान के रूप में पंजीकृत करता है। यह फ़ीडबैक और validation registries को भी कवर करता है, जो समय के साथ भरोसा बनाती हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Starknet Identity Skill
Register and manage AI agent identities on Starknet using the ERC-8004 standard.
When to Use
- Registering agents on-chain, updating agent metadata, or managing reputation and validation flows.
- Building features that depend on ERC-8004 identity, feedback, or validator attestations.
When NOT to Use
- Simple wallet, payment, or DeFi flows that do not depend on ERC-8004 registries.
- Cairo contract authoring, deployment-only tasks, or security auditing.
Quick Start
- Install
starknetand connect a funded account to the target ERC-8004 registry deployment. - Use skills catalog if the flow also needs wallet setup, deployment, or contract auditing.
Overview
ERC-8004 defines three interconnected on-chain registries for AI agents:
- Identity Registry -- Agents as ERC-721 NFTs with metadata
- Reputation Registry -- Feedback system with cryptographic authorization
- Validation Registry -- Third-party assessments (zkML, TEE, staker)
Reference implementation: erc8004-cairo
Prerequisites
npm install starknet
Agent Registration
Register a New Agent
import { Account, RpcProvider, Contract, CallData } from "starknet";
const provider = new RpcProvider({ nodeUrl: process.env.STARKNET_RPC_URL });
const account = new Account({ provider, address, signer: privateKey });
const identityRegistry = new Contract({
abi: identityRegistryAbi,
address: registryAddress,
providerOrAccount: account,
});
// Register with metadata
const metadata = [
{ key: "agentName", value: "MyTradingAgent" },
{ key: "agentType", value: "defi-trader" },
{ key: "version", value: "1.0.0" },
{ key: "model", value: "claude-opus-4-5" },
{ key: "status", value: "active" },
];
const tokenUri = "ipfs://QmYourAgentSpecHash"; // IPFS link to full agent spec
const { transaction_hash } = await account.execute({
contractAddress: registryAddress,
entrypoint: "register_with_metadata",
calldata: CallData.compile({
token_uri: tokenUri,
metadata: metadata,
}),
});
const receipt = await account.waitForTransaction(transaction_hash);
// Parse agent_id from events
Query Agent Information
// Check if agent exists
const exists = await identityRegistry.agent_exists(agentId);
// Get total registered agents
const totalAgents = await identityRegistry.total_agents();
// Get agent metadata
const name = await identityRegistry.get_metadata(agentId, "agentName");
const agentType = await identityRegistry.get_metadata(agentId, "agentType");
// Get agent owner (ERC-721)
const owner = await identityRegistry.owner_of(agentId);
Update Agent Metadata
// Only the agent owner can update metadata
await account.execute({
contractAddress: registryAddress,
entrypoint: "set_metadata",
calldata: CallData.compile({
agent_id: agentId,
key: "status",
value: "upgraded",
}),
});
Reputation System
Authorize and Submit Feedback
The reputation system uses a cryptographic authorization flow:
- Agent owner creates a FeedbackAuth struct and signs it
- Client submits feedback with the authorization
// Step 1: Agent owner creates authorization
const feedbackAuth = {
agent_id: agentId,
client_address: clientAddress,
index_limit: 10, // Max feedback entries allowed
expiry: Math.floor(Date.now() / 1000) + 3600, // 1 hour
chain_id: chainId,
identity_registry: registryAddress,
signer_address: ownerAddress,
};
// Sign the authorization (using agent owner's account)
const messageHash = computePoseidonHash(feedbackAuth); // EIP-712 style
const signature = await ownerAccount.signMessage(messageHash);
// Step 2: Client submits feedback
await clientAccount.execute({
contractAddress: reputationRegistryAddress,
entrypoint: "give_feedback",
calldata: CallData.compile({
agent_id: agentId,
score: 85, // 0-100
tag1: encodedTag("reliability"),
tag2: encodedTag("speed"),
fileuri: "",
filehash: 0,
feedback_auth: feedbackAuth,
signature: signature,
}),
});
Query Reputation
const reputationRegistry = new Contract({
abi: reputationAbi,
address: reputationAddress,
providerOrAccount: provider,
});
// Get summary for an agent (count + average score)
const [count, avgScore] = await reputationRegistry.get_summary(
agentId,
[], // all client addre
अक्सर पूछे जाने वाले सवाल
तीन registries क्या हैं?
स्किल पहचान registry, प्रतिष्ठा registry और validation registry का वर्णन करती है।
एजेंट को कैसे दर्शाया जाता है?
स्किल कहती है कि एजेंट्स को metadata वाले ERC-721 NFTs के रूप में दर्शाया जाता है।
क्या यह सरल भुगतान प्रवाह के लिए है?
नहीं। स्किल कहती है कि जो प्रवाह ERC-8004 registries इस्तेमाल नहीं करते, उनके लिए दूसरी स्किल बेहतर है।
जानकारी
लेखक का मूल विवरण
Register AI agents on-chain using the ERC-8004 Trustless Agents standard. Manage agent identity as NFTs, build reputation through feedback, and request third-party validation.
लोकप्रियता
- GitHub स्टार
- 7.0k
- रैंकिंग में स्थान
- #13686
- लाइसेंस
- —
- अपडेट की गई
- 26/10/2026
कमेंट
- …
इस repository की और skills
internet-court
7.0kयह आपके एजेंट को AI एजेंट या पेड सेवा से सुरक्षित तरीके से भुगतान और लेन-देन की शुरुआती दिशा देती है, और सही विशेष गाइड बताती है।
genlayer-erc7710-connector
7.0kयह आपके एजेंट को AI समीक्षा के नतीजे को अनुमति प्रणाली से जोड़ने देती है, ताकि खराब समीक्षा एजेंट की अनुमतियाँ सीमित कर सके।
genlayer-intelligent-contracts
7.0kयह आपके एजेंट को AI जज के नियम, सबूत और नतीजे तय करने में मदद करती है, जो जाँचता है कि दूसरा एजेंट अपने अधिकार के दायरे में रहा या नहीं।
x402-erc7710
7.0kयह आपके एजेंट को हर अनुरोध पर वेब सेवा का भुगतान करने और तय सीमा के भीतर लगातार खर्च करने की व्यवस्था में मदद करती है।
मिलती-जुलती skills
api-connector-builder
280kयह आपके एजेंट को मौजूदा pattern के हिसाब से नए API connections बनाने देता है। जब बिना कोई नया तरीका बनाए एक और integration जोड़ना हो, तब इसका इस्तेमाल करें।
api-design
280kयह आपके एजेंट को best practices के हिसाब से REST APIs डिज़ाइन करने में मदद करता है। यह तय करने में काम आता है कि APIs आपस में कैसे बात करें, errors कैसे दिखें, और data को कैसे व्यवस्थित करें।
backend-patterns
280kआपके एजेंट को server-side architecture patterns और database optimization में मदद करता है। server पर चलने वाला code बनाने या review करने के लिए उपयोगी है।