1 unstable release
Uses new Rust 2024
new 0.1.0 | May 14, 2025 |
---|
#524 in Web programming
26KB
245 lines
anda_cloud_cdk
anda_cloud_cdk
is a Canister Development Kit for the Anda Cloud, providing essential structures and utilities for building and interacting with the Anda network ecosystem on the Internet Computer Protocol (ICP).
Overview
This crate provides the core data structures, validation logic, and cryptographic utilities needed to:
- Register and manage AI agents in the Anda network
- Implement the agent challenge-response protocol for health verification
- Interact with Anda Registry Canisters
- Support Trusted Execution Environment (TEE) attestation
Key Features
- Agent Management: Comprehensive structures for agent registration and information management, supporting ANDA, A2A, MCP, and other protocols
- Challenge Protocol: Implementation of the agent health verification system
- Payment Protocol: Support for the X402 payment protocol
- TEE Support: Structures for Trusted Execution Environment attestation
Documentation
For detailed documentation of all structures and functions, please visit docs.rs/anda_cloud_cdk.
Challenge Process
The complete challenge process is as follows:
- The challenger obtains the agent's challenge code from the Registry Canister. For first-time registration, the challenge code is [0u8; 32].
- The challenger obtains the agent's latest information through its protocol and generates a ChallengeRequest.
- The challenger signs the ChallengeRequest with their ICP identity and sends it to the agent.
- Upon receiving the challenger's request, the agent confirms the information and signs it with its own ICP identity.
- If the agent is running in a TEE environment, it also generates TEE information, including an attestation containing this challenge information.
- The challenger sends the ChallengeEnvelope returned by the agent to the Registry Canister.
- The Registry Canister verifies the ChallengeEnvelope and updates the agent's status.
- Since the challenge code is updated after each successful challenge, only the first challenger for a given challenge code can succeed. Requests from other challengers for the same challenge code will be invalid.
Related Projects
- Anda Registry Canister: The canister implementation for the Anda agent registry
- Anda Protocol: The Anda Network Decentralized Agent protocol specification
- ICAuth: The Internet Computer identity based web authentication
License
Copyright © 2024-2025 LDC Labs.
ldclabs/anda-cloud
is licensed under the MIT License. See LICENSE for the full license text.
Dependencies
~13–21MB
~301K SLoC