Skip to content

ApiliumCode/ai-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIngle Logo

ai-id

Base32 identity encoding for AIngle agents, keys, and resources

Crates.io Documentation npm License


Overview

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.

Features

  • 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

Libraries

Language Package Documentation
Rust aiid docs.rs
JavaScript aiid-js README

Quick Start (Rust)

[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()?;

Quick Start (JavaScript)

npm install @aingle/aiid
import { AgentId, EntryHash } from '@aingle/aiid';

const agent = AgentId.fromBytes(pubkeyBytes);
console.log(agent.toString()); // agl-abc123...

Identifier Types

Type Prefix Description
AgentId agl- Agent public key
EntryHash aeh- Entry content hash
ActionHash ach- Action/header hash
DnaHash dnh- DNA definition hash

Part of AIngle

This crate is part of the AIngle ecosystem - a Semantic DAG framework for IoT and distributed AI applications.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.


Maintained by Apilium Technologies - Tallinn, Estonia

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •