Skip to content

WIP: Identity infrastructure for Federated State Networks. Multi-method DID support (did:key, did:wba) with DIDComm authentication.

License

Notifications You must be signed in to change notification settings

ArrayOfByte/fsn-identity-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FSN Identity Stack

WIP: Decentralized identity infrastructure for Federated State Networks.

Components

  • fsn-crypto - Cryptographic primitives (Ed25519, X25519, AES-GCM)
  • fsn-did-core - DID method trait abstractions
  • did-key-agent - Ephemeral agent identities (did:key)
  • did-wba - Web-based agent identities (did:wba)

The FSN Identity Stack provides two complementary DID methods:

  • did:key - Ephemeral agent identities (privacy-preserving, no network)
  • did:wba - Stable service identities (web-based, HTTPS resolution)

Quick Start

Install

```toml [dependencies] did-key-agent = "0.1" did-wba = "0.1" ```

Create Ephemeral Agent

```rust use did_key_agent::AgentIdentity;

#[tokio::main] async fn main() -> Result<(), Box> { let agent = AgentIdentity::new().await?; println!("Agent DID: {}", agent.did);

let message = b"Hello, FSN!";
let signature = agent.sign(message).await?;

Ok(())

} ```

Resolve DID

```rust use did_key_agent::DidKeyResolver;

let resolver = DidKeyResolver::new(); let doc = resolver.resolve("did:key:z6Mk...")?; ```

Architecture

``` fsn-identity-stack/ ├── fsn-crypto # Shared cryptographic primitives ├── fsn-did-core # DID method abstractions ├── did-key-agent # Ephemeral identities (FR-2) └── did-wba # Web-based identities (FR-1) ```

Performance

Operation Throughput Latency (p50)
did:key generation >50k ops/sec <20μs
did:key resolution >1M ops/sec <2μs
Ed25519 signing >45k ops/sec <25μs

Security

  • ✅ TLS 1.3 for did:wba
  • ✅ Memory zeroization for keys
  • ✅ Constant-time crypto operations
  • ✅ No panics on untrusted input

License

Apache-2.0

About

WIP: Identity infrastructure for Federated State Networks. Multi-method DID support (did:key, did:wba) with DIDComm authentication.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages