--- title: "HCS-11: Profile Metadata" description: The HCS-11 standard defines a systematic approach for managing profiles on the Hedera Hashgraph through account memos, enabling rich identity management for individuals and AI agents. sidebar_position: 11 --- # HCS-11 Standard: Profile Standard ### Status: Draft ### Version: 1.1 ### Table of Contents - [HCS-11 Standard: Profile Standard](#hcs-11-standard-profile-standard) - [Status: Draft](#status-draft) - [Version: 1.0.1](#version-11) - [Table of Contents](#table-of-contents) - [Authors](#authors) - [Abstract](#abstract) - [Motivation](#motivation) - [Specification](#specification) - [Profile Architecture](#profile-architecture) - [Account Memo Structure](#account-memo-structure) - [Base Profile Schema](#base-profile-schema) - [Profile Types](#profile-types) - [Profile Type Hierarchy](#profile-type-hierarchy) - [Common Fields for All Types](#common-fields-for-all-types) - [Personal Profile Fields](#personal-profile-fields) - [AI Agent Profile Fields](#ai-agent-profile-fields) - [Flora Profile Fields](#flora-profile-fields) - [MCP Server Profile Fields](#mcp-server-profile-fields) - [MCP Server Verification Process](#mcp-server-verification-process) - [DNS Verification](#dns-verification) - [Signature Verification](#signature-verification) - [Challenge Verification](#challenge-verification) - [Complete Verification Example](#complete-verification-example) - [Complete Client Verification Implementation](#complete-client-verification-implementation) - [HCS-10 Integration for AI Agents](#hcs-10-integration-for-ai-agents) - [DID Field](#did-field) - [Verifiable Presentations (VP) support](#verifiable-presentations-vp-support) - ["whois" endpoint/functionality](#whois-endpointfunctionality) - [VP rooted on DID (Linked VP resource)](#vp-rooted-on-did-linked-vp-resource) - [VP rooted on HCS-11 profile](#vp-rooted-on-hcs-11-profile) - [VP-based MCP Server Verification](#vp-based-mcp-server-verification) - [HCS-19 Integration for Privacy Compliance](#hcs-19-integration-for-privacy-compliance) - [Profile Update Flow](#profile-update-flow) - [Enums and Constants](#enums-and-constants) - [Profile Types](#profile-types-1) - [AI Agent Types](#ai-agent-types) - [Profile Image Types](#profile-image-types) - [AI Agent Capabilities](#ai-agent-capabilities) - [MCP Server Capabilities](#mcp-server-capabilities) - [MCP Server Authentication](#mcp-server-authentication) - [MCP Server Tags](#mcp-server-tags) - [Predefined Arrays](#predefined-arrays) - [Social Media Platforms](#social-media-platforms) - [Example Profiles](#example-profiles) - [Conclusion](#conclusion) - [Changelog](#changelog) ## Authors - Michael Kantor [https://twitter.com/kantorcodes](https://twitter.com/kantorcodes) ## Abstract The HCS-11 standard defines a systematic approach for managing profiles on the Hedera Hashgraph through account memos. This standard introduces a structured way to store profile information for individuals and AI agents, enabling rich identity management and interoperability across the Hedera ecosystem. ## Motivation As the Hedera ecosystem grows, there is an increasing need for a standardized way to manage profiles for different types of entities. This standard aims to provide a consistent format for storing and retrieving profile information, enabling interoperability between different applications and services while supporting various profile types including personal accounts and AI agents. ## Specification ### Profile Architecture The HCS-11 standard uses Hedera accounts with a standardized memo format to reference profile information: ```mermaid sequenceDiagram participant User as User/Application participant Account as Hedera Account participant Storage as Storage Protocol Note over Account: Account memo contains
hcs-11: User->>Account: 1. Query account info Account->>User: 2. Return account memo User->>Storage: 3. Resolve protocol reference Note over Storage: Can be HCS-1, HCS-2,
IPFS, Arweave, or HTTPS Storage->>User: 4. Return profile data Note over User: 5. Process profile information ``` ### Account Memo Structure The account memo follows a standardized format to indicate where the profile data is stored: ``` hcs-11: ``` Where: - `hcs-11` is the protocol identifier - `` can be either: - A [Hashgraph Resource Locator (HRL)](../definitions.md#hashgraph-resource-locator) for HCS protocols - Other URI formats for non-HCS protocols (IPFS, Arweave, HTTPS) Examples of valid memo formats: ``` # HRL references (HCS protocols) hcs-11:hcs://1/0.0.8768762 hcs-11:hcs://2/0.0.8768762 hcs-11:hcs://7/0.0.8768762 # Non-HCS protocol references hcs-11:ipfs://QmT5NvUtoM5nWFfrQdVrFtvGfKFmG7AHE8P34isapyhCxX hcs-11:ar://TQGxHPLpUcH7NG6rUYkzEnwD8_WqYQNPIoX5-0OoRXA ``` This approach ensures: 1. Profile data can be referenced using various protocols: - HCS protocols with [HRL](../definitions.md#hashgraph-resource-locator) format: - [HCS-1](./hcs-1.md): Static file storage - [HCS-2](./hcs-2.md): Topic registry standard - Non-HCS protocols: - IPFS: Distributed file storage - Arweave: Permanent storage 2. Large profiles can be stored efficiently on the appropriate storage layer 3. Profile history is maintained through the chosen protocol's mechanisms 4. Interoperability with existing decentralized storage solutions ### Base Profile Schema All profiles share these common fields: | Field | Type | Required | Description | | ------------------ | ------- | -------- | ---------------------------------------------------------------------------------------------------- | | version | string | Yes | Standard version (e.g., "1.0") | | type | number | Yes | Profile type enum (0=personal [not officially supported yet], 1=ai_agent, 2=mcp_server) | | display_name | string | Yes | Display name for the profile | | base_account | string | No | Hedera account ID of the controlling base account when profiles reuse key material; required for [HCS-15](/docs/standards/hcs-15) petal accounts | | uaid | string | Yes | UAID (uaid:did:...) for the subject. Other DIDs may be linked via DID Document `alsoKnownAs`. | | alias | string | No | Alternative identifier | | bio | string | No | Brief description or biography | | socials | array | No | Array of social media links | | profileImage | string | No | Protocol reference - either HRL for HCS protocols (e.g., "hcs://1/0.0.12345") or other URI formats | | properties | object | No | Additional unstructured profile properties | | inboundTopicId | string | No | [HCS-10](/docs/standards/hcs-10) inbound communication topic | | outboundTopicId | string | No | [HCS-10](/docs/standards/hcs-10) action record topic | | privacy_compliance | object | No | Optional [HCS-19](/docs/standards/hcs-19) compliance metadata and topic references | | | appnet | string | No | Resolvable URI (HCS-1 HRL preferred; IPFS/Arweave/OCI/HTTPS with integrity accepted) to the Flora configuration file (`flora.yaml` / `appnet.yaml`) used with HCS-21 declarations. Flora.yaml is preferred but supports other appnet schemas | Profiles that implement the [HCS-15](/docs/standards/hcs-15) petal account pattern shall populate the `base_account` field with the Hedera account ID of the base account that shares the private key. Profiles that implement the [HCS-16](/docs/standards/hcs-16) Flora pattern shall provide `inboundTopicId` and `outboundTopicId` values that reference the Flora communication and transaction topics. ### Profile Types #### Profile Type Hierarchy HCS-11 supports the following profile types: ```mermaid classDiagram class BaseProfile { version: string type: number display_name: string alias: string bio: string socials: array profileImage: string properties: object inboundTopicId: string outboundTopicId: string } class PersonalProfile { Not officially supported yet } class AIAgentProfile { aiAgent: object capabilities: array } class MCPServerProfile { mcpServer: object } class FloraProfile { members: array threshold: number topics: object } BaseProfile <|-- PersonalProfile BaseProfile <|-- AIAgentProfile BaseProfile <|-- MCPServerProfile BaseProfile <|-- FloraProfile ``` #### Common Fields for All Types | Object | Field | Type | Required | Description | | --------- | ---------- | ------ | -------- | ------------------------------- | | socials[] | platform | string | Yes | Social media platform name | | socials[] | handle | string | Yes | Username on the platform | | any[] | properties | object | No | Optional properties of any kind | The `properties` field is an unstructured JSON object that can contain any custom data the user wishes to include. There are no predefined fields or structure for this object, allowing for maximum flexibility and extensibility. Users can store any relevant information that isn't covered by the standard fields. #### Personal Profile Fields _Personal profiles (type=0) are not officially supported in this version of the standard. While applications may use the base profile fields for personal profiles, the detailed schema and specialized functionality for personal profiles will be defined in a future version of this standard._ #### AI Agent Profile Fields | Field | Type | Required | Description | | -------------------- | -------- | -------- | --------------------------------------------------- | | aiAgent.type | number | Yes | AI agent type enum (0=manual, 1=autonomous) | | aiAgent.capabilities | number[] | Yes | List of capability enums (see Capabilities section) | | aiAgent.model | string | Yes | AI model identifier | | aiAgent.creator | string | No | Creator of this Agent | #### Flora Profile Fields | Field | Type | Required | Description | | --------------------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------- | | type | number | Yes | Profile type enum; Flora profiles MUST set this to `3` | | members | array | Yes | Array of member descriptors referencing [HCS-15](/docs/standards/hcs-15) petal accounts | | members[].accountId | string | Yes | Hedera account ID for the member petal account (format: `0.0.x`) | | threshold | number | Yes | Number of member signatures required for Flora-controlled transactions | | topics | object | Yes | Object describing the Flora consensus topics | | topics.communication | string | Yes | Topic ID used for intra-Flora coordination messages | | topics.transaction | string | Yes | Topic ID that carries scheduled-transaction proposals and voting | | topics.state | string | Yes | Topic ID that records Flora state commitments (see [HCS-17](/docs/standards/hcs-17) for hash formatting) | | topics.custom | array | No | Optional array of additional topic descriptors including `name`, `topicId`, and optional `description` fields | | policies | object | No | Optional governance or automation policies expressed as implementation-defined key/value pairs | Flora profiles **shall** set their `type` field to `3` and reference the Flora account’s dedicated HCS topics in `inboundTopicId` and `outboundTopicId`. Additional nested fields may be introduced by future Flora revisions but must not violate this base contract. **Example Flora Profile JSON** ```json { "version": "1.0", "display_name": "🪷 Lotus‑Research Escrow #3", "type": 3, "members": [ { "accountId": "0.0.1234" }, { "accountId": "0.0.2345" }, { "accountId": "0.0.3456" } ], "threshold": 2, "topics": { "communication": "0.0.481516", "transaction": "0.0.481517", "state": "0.0.481518", "custom": [ { "name": "offChainHashes", "topicId": "0.0.792894", "description": "Used for attestation of offchain software" } ] }, "flora": { "uri": "hcs://1/0.0.600123" }, "policies": { "membershipChange": "2/3", "scheduleTxApproval": "all" } } ``` #### MCP Server Profile Fields | Field | Type | Required | Description | | ---------------------------- | -------- | -------- | --------------------------------------------------- | | mcpServer.version | string | Yes | MCP server version (e.g., "2025-03-26") | | mcpServer.connectionInfo | object | Yes | Connection details for the MCP server | | mcpServer.connectionInfo.url | string | Yes | Base URL for SSE connection or local path | | mcpServer.connectionInfo.transport | string | Yes | Transport type ("stdio" or "sse") | | mcpServer.services | number[] | Yes | List of service types offered (see MCP Services) | | mcpServer.description | string | Yes | Detailed description of server functionality | | mcpServer.verification | object | No | Verification proof of endpoint ownership | | mcpServer.verification.type | string | Yes* | Verification type: "dns", "signature", or "challenge" | | mcpServer.verification.value | string | Yes* | Verification value based on type | | mcpServer.verification.dns_field | string | No | Custom DNS TXT record name (default: "hedera") | | mcpServer.verification.challenge_path | string | No | Custom challenge endpoint path (default: "hedera-verification") | | mcpServer.host | object | No | Compatible host requirements | | mcpServer.host.minVersion | string | No | Minimum host version required | | mcpServer.capabilities | array | No | MCP capabilities supported by the server | | mcpServer.resources | array | No | Resources the server exposes | | mcpServer.tools | array | No | Tools the server provides to clients | | mcpServer.maintainer | string | No | Organization maintaining this MCP server | | mcpServer.repository | string | No | URL to source code repository | | mcpServer.docs | string | No | URL to server documentation | | mcpServer.protocolVersion | string | No | MCP protocol version supported (e.g., "2024-11-05") for client compatibility checks | | mcpServer.license | string | No | SPDX license identifier (e.g., "Apache-2.0", "MIT") | | mcpServer.deprecated | boolean | No | If true, server is deprecated; clients MAY warn or steer users to alternatives | | mcpServer.deprecationMessage | string | No | Human-readable deprecation notice or sunset date when deprecated is true | | mcpServer.securityPolicyUrl | string | No | URL for vulnerability disclosure (e.g., SECURITY.md or dedicated policy page) | | mcpServer.authentication | number | No | Authentication method enum (see [MCP Server Authentication](#mcp-server-authentication)) | | mcpServer.tags | number[] | No | Discovery tags: HCS-14 skill IDs (0–39) and/or OASF skill IDs (100+); see [MCP Server Tags](#mcp-server-tags) and [HCS-14 OASF Skills Integration](../hcs-14/index.md#oasf-skills-integration-100-informative) | #### MCP Server Verification Process The verification field in MCP server profiles enables trustless ownership verification without relying on centralized authorities. The `verification` object contains these fields: - `type`: Specifies the verification method to use ("dns", "signature", or "challenge") - `value`: Contains the verification data appropriate for the selected type - `dns_field`: (Optional) Customizes the DNS TXT record name for DNS verification - `challenge_path`: (Optional) Customizes the challenge endpoint path for challenge verification Each verification method is designed to address common use cases while providing flexible implementation options: ##### DNS Verification For `type: "dns"`, the verification process follows these specific steps: 1. **Record Format**: MCP server owner shall add a DNS TXT record to their domain with: - Name: By default, `hedera` or a custom name specified in `dns_field` (prefixed with `_` automatically) - Value: Equal to their Hedera account ID (e.g., `0.0.12345678`) 2. **Profile Format**: The verification object in the profile shall be structured as: ```json "verification": { "type": "dns", "value": "example.com", "dns_field": "hedera" // Optional, defaults to "hedera" } ``` Where: - `value` is the fully qualified domain name to check - `dns_field` optionally specifies a custom DNS TXT record name 3. **Verification Procedure**: - Client extracts the domain from the `value` field - Client extracts the DNS field name from `dns_field` (default: "hedera") - Client performs a DNS TXT lookup for record named `_{dns_field}` at that domain - Client compares the TXT record value with the Hedera account ID of the profile owner - Verification passes only if values match exactly (case-sensitive) 4. **Real-world Example**: ``` # Actual DNS record to add (using Route 53, Cloudflare, etc.) Name: _hedera.example.com Type: TXT Value: "0.0.12345678" TTL: 3600 # Sample dig command and response $ dig TXT _hedera.example.com ;; ANSWER SECTION: _hedera.example.com. 3600 IN TXT "0.0.12345678" ``` 5. **Common Providers Setup**: - **AWS Route 53**: Create a TXT record with name `_hedera` (or your custom prefix) and value equal to your account ID - **Cloudflare**: Add TXT record with name `_hedera.yourdomain.com` and content equal to your account ID - **GoDaddy**: Add TXT record with host `_hedera` and value equal to your account ID ##### Signature Verification For `type: "signature"`, the verification process follows these specific steps: 1. **Message Format**: The message to be signed shall be the server URL exactly as it appears in the `mcpServer.connectionInfo.url` field, with no additional characters or formatting. 2. **Signature Format**: The signature shall be: - Created using the ED25519 key associated with the Hedera account - Encoded as a hexadecimal string with no `0x` prefix - No additional formatting (no spaces, newlines, etc.) 3. **Profile Format**: The verification object in the profile shall be structured as: ```json "verification": { "type": "signature", "value": "a1b2c3d4e5f6..." // Hex-encoded signature } ``` 4. **Verification Procedure**: - Client extracts the URL from `mcpServer.connectionInfo.url` - Client extracts the signature from `verification.value` - Client retrieves the public key of the Hedera account owner from the Hedera network - Client verifies the signature against the UTF-8 encoded URL string using ED25519 verification - Verification passes only if the signature is valid 5. **Real-world Example**: ```javascript // Example of creating a signature (Node.js) const { Ed25519PrivateKey } = require("@hashgraph/sdk"); // Get your private key (securely stored) const privateKey = Ed25519PrivateKey.fromString("302e020100300506032b657004220420YOUR_PRIVATE_KEY"); // URL to sign (shall match exactly what's in your profile) const url = "https://mcp.example.com"; // Sign the URL (UTF-8 encoded) const signature = privateKey.sign(Buffer.from(url, "utf8")); // Convert to hex string for the verification.value field const signatureHex = signature.toString("hex"); console.log(signatureHex); // Output: "a1b2c3d4e5f6..." (this is what goes in verification.value) ``` ##### Challenge Verification For `type: "challenge"`, the verification process follows these specific steps: 1. **Endpoint Format**: - The MCP server shall expose an endpoint that responds to HTTP GET requests - Default path: `/hedera-verification` relative to the server URL - Custom path can be specified in `challenge_path` 2. **Challenge-Response Protocol**: - Client sends HTTP GET request to `{mcpServer.connectionInfo.url}/{challenge_path}` - Server shall respond with a JSON object containing: ```json { "accountId": "0.0.12345678", "timestamp": 1620000000000, "signature": "a1b2c3d4e5f6..." } ``` - The `signature` shall be an ED25519 signature (hex-encoded) of the UTF-8 encoded string `{accountId}:{timestamp}` using the account's private key 3. **Profile Format**: The verification object in the profile shall be structured as: ```json "verification": { "type": "challenge", "value": null, // Can be null for challenge verification "challenge_path": "verify" // Optional, defaults to "hedera-verification" } ``` 4. **Verification Procedure**: - Client determines the challenge endpoint URL by: - Taking the base URL from `mcpServer.connectionInfo.url` - Appending `/{challenge_path}` (or `/hedera-verification` if not specified) - Client makes HTTP GET request to this endpoint - Client validates that the returned `accountId` matches the profile owner's account ID - Client checks that `timestamp` is within acceptable time window (typically 24 hours) - Client verifies signature using the account owner's public key - Verification passes only if all checks pass 5. **Real-world Example**: ```javascript // Example server implementation (Express.js) const express = require('express'); const { Ed25519PrivateKey } = require('@hashgraph/sdk'); const app = express(); // Verification endpoint app.get('/hedera-verification', (req, res) => { const accountId = '0.0.12345678'; // Your Hedera account ID const timestamp = Date.now(); const message = `${accountId}:${timestamp}`; // Get your private key (securely stored) const privateKey = Ed25519PrivateKey.fromString("302e020100300506032b657004220420YOUR_PRIVATE_KEY"); // Sign the message const signature = privateKey.sign(Buffer.from(message, 'utf8')).toString('hex'); // Return the verification object res.json({ accountId, timestamp, signature }); }); app.listen(3000, () => console.log('Server running')); ``` ##### Complete Verification Example Here's a comprehensive example showing an MCP server profile with verification: ```json { "version": "1.0", "type": 2, "display_name": "Hedera Consensus MCP", "alias": "hedera_consensus", "bio": "MCP server for interacting with Hedera Consensus Service (HCS)", "profileImage": "hcs://1/0.0.54321", "inboundTopicId": "0.0.789103", "outboundTopicId": "0.0.789104", "properties": { "description": "Enhances AI capabilities with direct access to Hedera Consensus Service", "supportEmail": "support@hederaconsensus.com", "compatibility": ["Claude", "GPT-4", "Gemini"] }, "mcpServer": { "version": "2025-03-26", "connectionInfo": { "url": "https://mcp.hederaconsensus.com", "transport": "sse" }, "services": [0, 1, 5, 11, 14], "description": "Provides AI models with the ability to read from and submit messages to Hedera Consensus Service topics", "verification": { "type": "dns", "value": "hederaconsensus.com", "dns_field": "mcp-verify" }, "host": { "minVersion": "2024-11-05" }, "capabilities": [ "resources.get", "resources.list", "resources.subscribe", "tools.invoke" ], "maintainer": "Hedera Consensus Team", "repository": "https://github.com/hedera-consensus/mcp-server", "docs": "https://docs.hederaconsensus.com/mcp-integration" } } ``` The corresponding DNS record for this profile: ``` _mcp-verify.hederaconsensus.com. 3600 IN TXT "0.0.12345678" ``` ##### Complete Client Verification Implementation This client implementation covers all verification methods: ```javascript /** * Verifies an MCP server profile's ownership * * @param {string} accountId - The Hedera account ID that owns the profile * @param {object} profile - The complete HCS-11 profile object * @returns {Promise} True if verification passes, false otherwise */ async function verifyMCPServer(accountId, profile) { if (!profile?.mcpServer?.verification?.type) { return false; } const verification = profile.mcpServer.verification; try { switch (verification.type) { case "dns": return await verifyDNS(accountId, profile); case "signature": return await verifySignature(accountId, profile); case "challenge": return await verifyChallenge(accountId, profile); default: console.error(`Unknown verification type: ${verification.type}`); return false; } } catch (error) { console.error(`Verification error: ${error.message}`); return false; } } /** * DNS verification method */ async function verifyDNS(accountId, profile) { const domain = profile.mcpServer.verification.value; if (!domain) { throw new Error("Missing domain in verification value"); } const dnsField = profile.mcpServer.verification.dns_field || "hedera"; const recordName = `_${dnsField}.${domain}`; // Fetch TXT records (implementation varies by platform) const txtRecords = await dns.resolveTxt(recordName); // Check if any record matches the account ID return txtRecords.some(record => Array.isArray(record) && record[0] === accountId ); } /** * Signature verification method */ async function verifySignature(accountId, profile) { const url = profile.mcpServer.connectionInfo.url; if (!url) { throw new Error("Missing URL in connectionInfo"); } const signature = profile.mcpServer.verification.value; if (!signature) { throw new Error("Missing signature in verification value"); } // Get the public key from Hedera (implementation varies) const publicKey = await fetchAccountPublicKey(accountId); // Verify the signature (using ED25519 verification) return ed25519Verify( Buffer.from(url, 'utf8'), Buffer.from(signature, 'hex'), publicKey ); } /** * Challenge verification method */ async function verifyChallenge(accountId, profile) { const baseUrl = profile.mcpServer.connectionInfo.url; if (!baseUrl) { throw new Error("Missing URL in connectionInfo"); } const challengePath = profile.mcpServer.verification.challenge_path || "hedera-verification"; const endpoint = `${baseUrl}/${challengePath}`; // Make the HTTP request const response = await fetch(endpoint); if (!response.ok) { throw new Error(`Challenge endpoint returned ${response.status}`); } const data = await response.json(); // Validate accountId if (data.accountId !== accountId) { return false; } // Validate timestamp (within 24 hours) const timestamp = BigInt(data.timestamp); const currentTime = BigInt(Date.now()); if (currentTime - timestamp > 86400000n) { return false; } // Get the public key from Hedera const publicKey = await fetchAccountPublicKey(accountId); // Create the message that was signed const message = `${data.accountId}:${data.timestamp}`; // Verify the signature return ed25519Verify( Buffer.from(message, 'utf8'), Buffer.from(data.signature, 'hex'), publicKey ); } ``` ### HCS-10 Integration for AI Agents AI agent profiles can include [HCS-10](/docs/standards/hcs-10) communication channels: ```mermaid sequenceDiagram participant AgentAccount as AI Agent Account participant ProfileTopic as HCS-11 Profile Topic participant ClientAccount as Client Account participant InboundTopic as Inbound Topic AgentAccount->>ProfileTopic: Create and store profile Note over ProfileTopic: {
"type": 1,
"inboundTopicId": "0.0.789101",
"outboundTopicId": "0.0.789102"
} AgentAccount->>AgentAccount: Set account memo Note over AgentAccount: memo: hcs-11:0.0.789103 ClientAccount->>AgentAccount: Discover agent AgentAccount->>ClientAccount: Return account memo ClientAccount->>ProfileTopic: Resolve profile ProfileTopic->>ClientAccount: Return profile data ClientAccount->>InboundTopic: Send connection request Note over InboundTopic: Connection request message InboundTopic->>AgentAccount: Deliver request ``` The `inboundTopicId` and `outboundTopicId` fields in the profile reference [HCS-10](/docs/standards/hcs-10) topics for bidirectional communication with AI agents. ### DID Field Profiles shall include a top‑level `uaid` field containing an HCS‑14 UAID for the subject (uaid:did:...). Other DIDs (e.g., `did:pkh`, `did:ethr`, `did:web`) may be referenced from the DID Document using `alsoKnownAs`. ### Verifiable Presentations (VP) support Profiles can optionally support advanced identity features by leveraging [Verifiable Credentials (VC)](https://www.w3.org/TR/vc-data-model-2.0/#what-is-a-verifiable-credential). Specifically, highly relevant scenarios of establishing trust to a profile subject can be addressed by supporting [Verifiable Presentations (VP)](https://www.w3.org/TR/vc-data-model-2.0/#verifiable-presentations). This section proposes optional features for HCS-11 profiles that aim to provide convenient options for leveraging VPs for complex verification scenarios and improved interoperability with Decentralized Identity / SSI solutions. #### "whois" endpoint/functionality Profiles can optionally support "whois" functionality (based on [whois protocol](https://en.wikipedia.org/wiki/WHOIS)) The "whois" functionality allows agents to expose a public Verifiable Presentation (VP) containing essential claims about the agent. These claims can be issued by the agent owner, a registry, or other trusted parties to provide verifiable context about the agent's identity, capabilities, or compliance status. **VP example**: ```json { "@context": [ "https://www.w3.org/2018/credentials/v1" ], "holder": "did:hedera:testnet:23g2MabDNq3KyB7oeH9yYZsJTRVeQ24DqX8o6scB98e3_0.0.5217215", "type": ["VerifiablePresentation"], "verifiableCredential" : { "@context" : [ "https://www.w3.org/2018/credentials/v1" ], "type" : [ "VerifiableCredential", "AgentCredential" ], "id" : "76e12ec712ebc6f1c221ebfeb1f", "issuer" : "did:hedera:testnet:FAeKMsqnNc2bwEsC8oqENBvGqjpGu9tpUi3VWaFEBXBo_0.0.5896419", "issuanceDate" : "2025-06-16T18:56:59Z", "expirationDate" : "2025-12-30T18:56:59Z", "credentialSubject" : { "id": "uaid:did:QmX4fB9XpS3yKqP8MHTbcQW7R6wN4PrGHz;uid=helper-bot;registry=hol;nativeId=hedera:testnet:0.0.2656337", "display_name" : "AI Assistant Bot", "aiAgent": { "type": 0, "capabilities": [0, 1], "model": "gpt-4", "creator": "Hashgraph Online" } }, "proof" : { "type" : "Ed25519Signature2018", "created" : "2025-06-16T21:56:59Z", "proofPurpose" : "assertionMethod", "verificationMethod" : "did:hedera:testnet:FAeKMsqnNc2bwEsC8oqENBvGqjpGu9tpUi3VWaFEBXBo_0.0.5896419#key-1", "jws" : "eyJiNjQiOmZhbHNlLCJjcml0IjpbImI2NCJdLCJhbGciOiJFZERTQSJ9..jbhZsH1jylvuZLov502qhTRkYvgbepU8ds8Mbgf4X7dhVp8F1P89Ql5WMA2DQEJxMGsVlaT8plfSY0JUw6XmDg" } }, "proof" : { "type" : "Ed25519Signature2018", "created" : "2025-06-16T22:53:31Z", "domain" : "example.com", "nonce" : "343s$FSFDa-", "proofPurpose" : "authentication", "verificationMethod" : "did:hedera:testnet:23g2MabDNq3KyB7oeH9yYZsJTRVeQ24DqX8o6scB98e3_0.0.5217215#key-1", "jws" : "eyJiNjQiOmZhbHNlLCJjcml0IjpbImI2NCJdLCJhbGciOiJFZERTQSJ9..twmPVhZgmKnnx6EI1xmUt3t_0GJizjambyLxWioG1hzwmDYnadWcQCC600uRpOE5WRIdx14y8uRHIa7AxSo5Cw" } } ``` HCS-11 supports two primary approaches for associating Verifiable Presentations with a profile: ##### VP rooted on DID (Linked VP resource) The profile indirectly references a Verifiable Presentation linked directly to the agent's DID Document. This follows the standard [Linked VP](https://identity.foundation/linked-vp/spec/v1.0.0/) approach. **Linked VP example**: ```json { "id": "#whois", "type": "LinkedVerifiablePresentation", "serviceEndpoint": "hcs://1/0.0.12345" // HRL pointing to VP content } ``` ##### VP rooted on HCS-11 profile A new `verifiable_presentations` property is included in the HCS-11 profile object. This property contains an array of metadata entries (objects), each containing a scenario-specific id and URI (typically an HRL) pointing to the VP content. | Field | Type | Required | Description | |:---------------------------|:---------|:---------|:------------------------------------------------------------------| | `verifiable_presentations` | object[] | No | Entries with VP metadata (id and URI/HRL pointing to VP content). | **Example of `verifiable_presentations` entry:** ```json { "id": "whois", // Scenario-specific id of VP "uri": "hcs://1/0.0.12345" // URI/HRL pointing to a VP containing claims about the agent } ``` #### VP-based MCP Server Verification VP-based verification for MCP Server is a more flexible and robust alternative to the signature verification approach: * **Multi-claim support**: Enables verification of multiple attributes simultaneously (e.g., identity + certification + organizational membership) * **Flexible Identifier support**: Verification is anchored on W3C DID instead of a Hedera account public key * **Trust Delegation**: Allows verification of claims issued by third-party authorities, enhancing the trust model beyond self-attestation * **Interoperability**: Leverages W3C Verifiable Credentials standards for compatibility with the broader SSI ecosystem The proposed verification flow is the following: 1. **VP claims requirements**: VP linked to MCP server profile MUST include claim for MCP server URL and use its value exactly as it appears in the `mcpServer.connectionInfo.url` field, with no additional characters or formatting. 2. **Profile Format**: The verification object in the profile shall be structured as: ```json "verification": { "type": "vp", "value": "hcs://1/0.0.12345" // HRL pointing to VP content } ``` 3. **Verification Procedure**: - Client extracts the URL from `mcpServer.connectionInfo.url` - Client retrieves VP content via reference in `verification.value` - Client verifies VP (public keys are resolved from corresponding DID Documents in VP) - Verification passes only if VP is valid and MCP server URL claim in VP equals the URL from `mcpServer.connectionInfo.url` ### HCS-19 Integration for Privacy Compliance HCS-19 defines a privacy‑compliance framework for recording consent, processing, rights, and audit logs on HCS. When an AI agent processes personal data, HCS‑11 profiles should include a `privacy_compliance` object to declare compliance posture and reference the relevant HCS‑19 topics. | Field | Type | Required | Description | | --------------------------------------- | -------- | -------- | ---------------------------------------------------------- | | privacy_compliance.standards | string[] | No | Applicable legal frameworks (e.g., "gdpr", "ccpa", "ddp") | | privacy_compliance.jurisdictions | string[] | No | ISO‑3166 style region codes (e.g., "EU", "US‑CA") | | privacy_compliance.consent_topic_id | string | No | HCS topic ID for Consent Management (HCS‑19 Type 0) | | privacy_compliance.processing_topic_id | string | No | HCS topic ID for Processing Registry (HCS‑19 Type 1) | | privacy_compliance.rights_topic_id | string | No | HCS topic ID for Rights Registry (HCS‑19 Type 2) | | privacy_compliance.audit_topic_id | string | No | HCS topic ID for Compliance Audit (HCS‑19 Type 3) | | privacy_compliance.dpo_contact | string | No | Data Protection Officer contact | | privacy_compliance.privacy_policy_url | string | No | Public URL of privacy policy/notice | | privacy_compliance.retention_policy | string | No | Default retention policy description | Notes: - See [HCS‑19](/docs/standards/hcs-19) for topic types, message schemas, and consent receipt guidance. - Profiles that include `privacy_compliance` enable clients to discover and verify HCS‑19 topics for consent and compliance workflows. ### Profile Update Flow Profiles can be updated according to the protocol used for reference: ```mermaid sequenceDiagram participant Owner as Account Owner participant Storage as Storage Protocol participant Apps as Applications Owner->>Storage: 1. Create/Update Profile Data Note over Storage: Store using HCS-1, HCS-2,
IPFS, Arweave, or HTTPS Apps->>Storage: 2. Read Latest Profile Version Storage->>Apps: 3. Return Profile Data Note over Storage: Each protocol handles updates differently:
- HCS-1: New messages to topic
- HCS-2: New registry entries
- IPFS/Arweave: New content IDs + memo update ``` The update process varies by protocol: - **[HCS-1](./hcs-1.md)**: Updates require new messages to the static file topic - **[HCS-2](./hcs-2.md)**: Updates are made by submitting new registry entries to the topic - **IPFS**: New CIDs are created for updated profiles, requiring account memo updates - **Arweave**: New transaction IDs are created for updated profiles, requiring account memo updates ### Enums and Constants #### Profile Types _This enum categorizes the primary profile classifications supported by HCS-11. It distinguishes between individual user profiles, AI agent profiles, and MCP server profiles, ensuring that each type is processed with its specific requirements in mind._ | Value | Description | | ----- | ------------------------------------------------------ | | 0 | Individual user profile (not officially supported yet) | | 1 | AI agent profile | | 2 | MCP server profile | | 3 | Flora profile (coordinated multi-member account) | #### AI Agent Types _This enum defines the operational categories for AI agents within the HCS-11 standard. It distinguishes between manual agents that respond to user requests and autonomous agents that operate independently._ | Value | Description | | ----- | ----------------------------------------- | | 0 | Manual AI that responds to user requests | | 1 | Autonomous AI that operates independently | #### Profile Image Types _This table defines the supported URI formats for profile images in HCS-11. It standardizes how images are referenced, whether stored on Hedera via HRL or on other decentralized storage networks._ **Hashgraph Resource Locator (HRL)** formats ([HCS protocols only](../definitions.md#hashgraph-resource-locator)): | HRL Format | Description | | ------------------- | ----------------------------------------------------- | | `hcs://1/{topicId}` | Static file stored using [HCS-1](./hcs-1.md) standard | | `hcs://2/{topicId}` | Topic registry using [HCS-2](./hcs-2.md) standard | **Other URI formats** (non-HCS protocols): | URI Format | Description | | ---------------------- | ------------------------------ | | `ipfs://{cid}` | IPFS content identifier | | `ar://{transactionId}` | Arweave transaction identifier | | `https://{url}` | Direct HTTPS URL to image | #### AI Agent Capabilities _This enum lists the broad functional capabilities that AI agents can advertise in their profiles. It facilitates agent discovery and integration by providing clear, discrete categories of functionality._ | Value | Capability | Description | | ----- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------- | | 0 | Text Generation | Generate coherent, human-like text for content creation, chat, and narrative tasks. | | 1 | Image Generation | Create or modify visual content based on text prompts or algorithmic inputs. | | 2 | Audio Generation | Synthesize speech, music, or soundscapes from textual or data-driven inputs. | | 3 | Video Generation | Produce dynamic visual content, animations, or edited video outputs. | | 4 | Code Generation | Produce dynamic code content based on text prompts. | | 5 | Language Translation | Convert text or speech between languages in real time to enable multilingual interactions. | | 6 | Summarization & Content Extraction | Distill lengthy content into concise summaries or extract key information for quick insights. | | 7 | Knowledge Retrieval & Reasoning | Access, organize, and infer from structured and unstructured data to support informed decision-making. | | 8 | Data Integration & Visualization | Aggregate disparate data sources and present insights through clear, visual representations. | | 9 | Market Intelligence | Analyze financial and economic data to offer strategic insights and forecast trends. | | 10 | Transaction Analytics | Monitor and analyze financial or on-chain transactions for pattern detection and operational validation. | | 11 | Smart Contract Audit | Evaluate decentralized code for vulnerabilities, performance issues, and compliance within blockchain systems. | | 12 | Governance Facilitation | Support decentralized decision-making through proposal evaluation, voting, and consensus mechanisms. | | 13 | Security Monitoring | Detect, alert, and respond to security threats, anomalies, and unauthorized access in real time. | | 14 | Compliance & Regulatory Analysis | Ensure operations adhere to legal, regulatory, and internal standards. | | 15 | Fraud Detection & Prevention | Identify and mitigate fraudulent activities through pattern recognition and risk assessment. | | 16 | Multi-Agent Coordination | Enable seamless collaboration and communication among multiple autonomous agents. | | 17 | API Integration & Orchestration | Connect and manage interactions with external systems, services, and data sources through standardized APIs. | | 18 | Workflow Automation | Automate routine tasks and processes to streamline operations and improve efficiency. | #### MCP Server Capabilities _This enum lists the service types that MCP servers can offer, based on the actual Model Context Protocol specification._ | Value | Service Type | Description | | ----- | -------------------------- | ---------------------------------------------------------------------------------------- | | 0 | Resource Provider | Exposes data resources like files, databases, or structured content | | 1 | Tool Provider | Provides executable tools that can perform actions on behalf of the AI | | 2 | Prompt Template Provider | Offers reusable prompt templates to guide AI responses | | 3 | Local File Access | Provides access to files on the local filesystem with permission controls | | 4 | Database Integration | Connects to databases and provides query capabilities | | 5 | API Integration | Connects to third-party APIs and exposes their functionality | | 6 | Web Access | Provides web browsing, search, or web page analysis capabilities | | 7 | Knowledge Base | Serves as a specialized knowledge repository with search and retrieval | | 8 | Memory/Persistence | Offers persistent storage between sessions for remembering context | | 9 | Code Analysis | Provides code understanding, manipulation, and execution capabilities | | 10 | Content Generation | Allows for creating and editing of content like text, images, or code | | 11 | Communication | Enables sending/receiving messages via email, chat, or messaging platforms | | 12 | Document Processing | Processes and extracts information from documents in various formats | | 13 | Calendar/Schedule | Provides access to calendar events, scheduling, and time management | | 14 | Search | Offers specialized search capabilities across various data sources | | 15 | Assistant Orchestration | Manages interactions between multiple AI assistants or services | #### MCP Server Authentication _This enum defines the authentication methods an MCP server may require. Using a numeric enum keeps the payload small when profiles are stored on-chain._ | Value | Description | | ----- | --------------------------------------------------------------------------- | | 0 | None - no authentication required | | 1 | API key - client supplies an API key | | 2 | OAuth 2 - OAuth2 or OIDC | | 3 | Other - implementation-defined; document in server docs or profile `properties` | #### MCP Server Tags _For discovery and filtering, `mcpServer.tags` uses the same enumerated namespace as [HCS-14 Agent Skills](../hcs-14/index.md#agent-skills):_ - **0–39**: [HCS-14 Core and Protocol-Specific Skills](../hcs-14/index.md#core-skills-0-19) (e.g. Text Generation, Code Generation, API Integration). - **100+**: [OASF Skills](https://schema.oasf.outshift.com/skill_categories) (Open Agentic Schema Framework), as used in [HCS-14 OASF Skills Integration (100+) (Informative)](../hcs-14/index.md#oasf-skills-integration-100-informative). Implementations SHOULD use numeric skill/category IDs in the `tags` array rather than free-form strings, so payloads stay small on-chain and align with HCS-14 and OASF registries. The array MAY be sorted numerically in ascending order for consistency with HCS-14. **Example:** `"tags": [0, 17, 10102, 1403]` (HCS-14 Text Generation, API Integration; OASF Text Generation, API Integration). ### Predefined Arrays #### Social Media Platforms _This predefined array lists supported social media platforms for the `socials[].platform` field, ensuring consistency and interoperability in how profiles reference external social identities._ | Platform | Description | Handle Format | | -------- | ----------------------------- | ------------- | | twitter | Twitter/X social network | @username | | github | GitHub development platform | username | | discord | Discord username | username#0000 | | telegram | Telegram messenger | @username | | linkedin | LinkedIn professional network | /in/username | | youtube | YouTube channel | @channel | ### Example Profiles AI Agent Profile with HCS‑10 and privacy compliance (optional): ```json { "version": "1.0", "type": 1, "display_name": "AI Assistant Bot", "uaid": "uaid:did:QmX4fB9XpS3yKqP8MHTbcQW7R6wN4PrGHz;uid=helper-bot;registry=hol;nativeId=hedera:testnet:0.0.2656337", "alias": "helper_bot", "bio": "I'm an AI assistant helping users with Hedera-related tasks", "profileImage": "hcs://1/0.0.12345", "inboundTopicId": "0.0.789101", "outboundTopicId": "0.0.789102", "privacy_compliance": { "standards": ["gdpr", "ccpa", "ddp"], "jurisdictions": ["EU", "US-CA", "US"], "consent_topic_id": "0.0.789101", "processing_topic_id": "0.0.789102", "rights_topic_id": "0.0.789103", "audit_topic_id": "0.0.789104", "dpo_contact": "dpo@example.com", "privacy_policy_url": "https://example.com/privacy", "retention_policy": "2_years_default" }, "properties": { "description": "General-purpose Hedera assistant", "version": "1.0.0", "training": { "dataset": "hedera_docs_2024", "method": "fine_tuning", "timestamp": 1709654845 }, "supported_languages": ["en", "es", "fr"], "max_context_length": 16384, "response_time_ms": 250, "uptime_percentage": 99.9 }, "aiAgent": { "type": 0, "capabilities": [0, 1], "model": "gpt-4", "creator": "Hashgraph Online" } } ``` MCP Server Profile with UAID: ```json { "version": "1.0", "type": 2, "display_name": "Hedera Consensus MCP", "uaid": "uaid:did:QmZ8kL4mN6vP2wQ9xR3tY7hB5jC1sA9eD;uid=hcs-mcp;registry=olas;nativeId=eip155:1:0x742d35Cc6634C0532925a3b844Bc9e7595f41Bd", "alias": "hedera_consensus", "bio": "MCP server for interacting with Hedera Consensus Service (HCS)", "profileImage": "hcs://1/0.0.54321", "inboundTopicId": "0.0.789103", "outboundTopicId": "0.0.789104", "properties": { "description": "Enhances AI capabilities with direct access to Hedera Consensus Service", "supportEmail": "support@hederaconsensus.com", "compatibility": ["Claude", "GPT-4", "Gemini"], "releaseNotes": "https://hederaconsensus.com/releases" }, "mcpServer": { "version": "2025-03-26", "connectionInfo": { "url": "https://hederaconsensus.com/mcp", "transport": "sse" }, "services": [0, 1, 5, 11, 14], "description": "Provides AI models with the ability to read from and submit messages to Hedera Consensus Service topics", "verification": { "type": "dns", "value": "hederaconsensus.com/hedera=0.0.12345678" }, "host": { "minVersion": "2024-11-05" }, "capabilities": [ "resources.get", "resources.list", "resources.subscribe", "tools.invoke" ], "resources": [ { "name": "hcs_topics", "description": "Access message streams from Hedera Consensus Service topics" }, { "name": "hcs_messages", "description": "Browse historical messages from consensus topics" } ], "tools": [ { "name": "topic_submit", "description": "Submit new messages to Hedera Consensus Service topics" }, { "name": "topic_subscribe", "description": "Subscribe to real-time messages from HCS topics" }, { "name": "topic_search", "description": "Search for messages in HCS topics by content or timestamp" } ], "maintainer": "Hedera Consensus Team", "repository": "https://github.com/hedera-consensus/mcp-server", "docs": "https://docs.hederaconsensus.com/mcp-integration" } } ``` ## Conclusion The HCS-11 standard provides a simple, extensible framework for managing profiles on Hedera. With built-in versioning and a flexible structure, it supports diverse use cases while maintaining compatibility as the standard evolves. ## Changelog _This revision (1.0.1) is a Clarification per [HCS-4 Change Management](hcs-4.md#change-management): optional schema extensions only; no change to existing conformance requirements._ | Version | Date | Description | | ------- | ---------- | ----------- | | 1.0.1 | (pending) | Added optional MCP server profile fields: `protocolVersion`, `license`, `deprecated`, `deprecationMessage`, `securityPolicyUrl`, `authentication`, `tags`. | | 1.0 | — | Initial draft. |