Base32 identity encoding for AIngle agents, keys, and resources
ai-id provides a standardized Base32 encoding scheme for identifiers in the AIngle ecosystem. It ensures consistent, human-readable representations of cryptographic keys, agent IDs, entry hashes, and other identifiers across the distributed network.
- Human-readable - Base32 encoding optimized for readability
- Checksum validation - Built-in integrity verification
- Multi-language - Available in Rust and JavaScript
- Type-safe - Distinct types for different identifier categories
- Compact - Efficient encoding for network transmission
| Language | Package | Documentation |
|---|---|---|
| Rust | aiid | docs.rs |
| JavaScript | aiid-js | README |
[dependencies]
aiid = "0.1"use aiid::{AgentId, EntryHash};
// Create an agent ID from bytes
let agent = AgentId::from_raw_bytes(&agent_pubkey);
println!("Agent: {}", agent); // agl-abc123...
// Parse from string
let hash: EntryHash = "aeh-xyz789...".parse()?;npm install @aingle/aiidimport { AgentId, EntryHash } from '@aingle/aiid';
const agent = AgentId.fromBytes(pubkeyBytes);
console.log(agent.toString()); // agl-abc123...| Type | Prefix | Description |
|---|---|---|
AgentId |
agl- |
Agent public key |
EntryHash |
aeh- |
Entry content hash |
ActionHash |
ach- |
Action/header hash |
DnaHash |
dnh- |
DNA definition hash |
This crate is part of the AIngle ecosystem - a Semantic DAG framework for IoT and distributed AI applications.
Licensed under the Apache License, Version 2.0. See LICENSE for details.
Maintained by Apilium Technologies - Tallinn, Estonia