interplane.Get Omega
Read in your language

rad-id-sync

This project has not described itself yet.

Brought by drakestapleton

branch main Branches Tags History

rad-id-sync / README.md

88 lines · 3670 bytes Raw Blame History Rendered
1<p align="center">
2 <img src="assets/avatar.jpg" width="140" height="140" alt="AIEN Sovereign Intelligence" style="border-radius: 50%; border: 2px solid #f59e0b;">
3</p>
4
5# rad-id-sync
6
7[![Crates.io](https://img.shields.io/badge/crates.io-v0.1.0-orange.svg)](https://github.com/aien-dev/rad-id-sync)
8[![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](LICENSE)
9[![Security](https://img.shields.io/badge/tpm--vault-zero--disk--secrets-green.svg)](SECURITY.md)
10[![Standard](https://img.shields.io/badge/standard-unslop-black.svg)](CONTRIBUTING.md)
11[![Mission](https://img.shields.io/badge/mission-sovereign--defense-amber.svg)](https://drakestapleton.com)
12
13Cryptographic identity synchronization and Ed25519 key anchor extension for Radicle sovereign git collaboration. Written in native Rust with Mojo/C FFI bindings.
14
15## Overview
16
17`rad-id-sync` guarantees cryptographic non-repudiation across distributed peer-to-peer git networks. It automatically discovers, validates, and synchronizes Ed25519 public keys between host SSH keys, Radicle node identities, and local sovereign agent profiles without exposing private keys.
18
19It anchors agent identities (`did:rad:aien:...`) into a deterministic JSON ledger, ensuring that autonomous code contributions can be verified cryptographically across the Radicle peer lattice.
20
21## Architecture & Identity Flow
22
23```mermaid
24sequenceDiagram
25 participant Host as DGX Spark Host
26 participant TPM as TPM Hardware Vault
27 participant Sync as rad-id-sync
28 participant Anchor as Identity Anchor Ledger
29 participant Radicle as Radicle P2P Node
30
31 Host->>Sync: Execute rad-id-sync sync
32 Sync->>TPM: Verify Hardware Key State
33 Sync->>Host: Read ~/.radicle/keys and ~/.ssh/id_ed25519.pub
34 Sync->>Sync: Compute SHA-256 Key Fingerprints
35 Sync->>Anchor: Record Key History & Status
36 Anchor-->>Radicle: Anchor DID did:rad:aien:spark-master
37 Radicle-->>Host: Cryptographic Sync Verified
38```
39
40## Features
41
42- **Decentralized Identity Anchoring**: Formats and maintains W3C-compatible Decentralized Identifiers (`did:rad:...`) for autonomous agents and human operators.
43- **SHA-256 Key Fingerprinting**: Generates canonical cryptographic hashes of Ed25519 and SSH keys for tamper-evident ledgering.
44- **Mojo & C FFI Layer**: Exposes native C-ABI dynamic library exports (`librad_id_sync.so`) for ultra-low-latency invocation from Modular MAX, Mojo scripts, and system shells.
45- **Zero Disk Secrets**: Never touches, copies, or persists private keys. Reads only public key material and interacts with hardware TPM vaults for signing operations.
46
47## CLI Usage
48
49```bash
50# Display current identity anchor status and registered keys
51rad-id-sync status
52
53# Synchronize local keys with the identity ledger
54rad-id-sync sync
55
56# Output machine-readable JSON report for automation pipelines
57rad-id-sync json
58```
59
60## C / Mojo FFI Interface
61
62`rad-id-sync` compiles as both an executable binary and a native shared library (`cdylib`):
63
64```c
65// Retrieve current identity anchor JSON
66const char* rad_id_sync_get_identity_json();
67
68// Execute full identity key sync
69int rad_id_sync_run();
70```
71
72## Building & Verification
73
74```bash
75# Build binary and shared C library
76cargo build --release
77
78# Run verification test suite
79cargo test --verbose
80```
81
82## Sovereign Mission
83
84Part of the AIEN Sovereign Intelligence initiative. Engineered on NVIDIA DGX Spark to democratize artificial intelligence, defend autonomous sovereignty, and pay the debt forward for those who cannot defend themselves.
85
86## License
87
88Licensed under either of [Apache License, Version 2.0](LICENSE) or [MIT License](LICENSE) at your option.