Skip to main content

Module identity

Module identity 

Source
Expand description

Identity provider abstraction for unified key management.

Three implementations cover the trust boundaries:

  • NodeIdentityProvider — native server/CLI (file + keyring)
  • AegisIdentityProvider — browser (aegis-vault via JS callback)
  • FederatedIdentityProvider — cross-node (entity statements)

HKDF derivation: HKDF(root_seed, purpose_bytes) — no prefix. The purpose string IS the domain separator.

Structs§

Did
A W3C Decentralized Identifier (did:key:…, did:web:…, …), carried on capnp wires as Text (W3C DID strings — see https://www.w3.org/TR/did-core/) and mapped to this Rust newtype via a field-level $domainType("hyprstream_rpc::identity::Did") annotation. The generated ToCapnp/FromCapnp impls write via Did::as_str and read via Did::new.
IdentityKeyCandidate
One named verification-key candidate published by an identity.
IdentityKeys
The named verification-key candidates a resolver returns for an identity.

Constants§

DID_AT9P_PREFIX
The did:at9p: method prefix — the single source of truth for the self-certifying hybrid-PQC capsule identity (#879/#880). A did:at9p identifier is this prefix followed by the base32 CIDv1 (cid512) of the genesis capsule (#884).
UNAUTHENTICATED_DID_SENTINEL
Reserved sentinel naming the credential-absence floor.

Traits§

IdentityProvider
Unified identity provider — key management + trust resolution.
IdentityResolver
Resolves a Did to its verified key material.
SigningIdentity
A purpose-keyed signing identity derived from a root seed.

Type Aliases§

Ed25519Vk
Raw 32-byte Ed25519 verifying key.
MlDsaVk
ML-DSA-65 verifying key (FIPS 204), pinned to the always-compiled PQ primitive (crate::crypto::pq::MlDsaVerifyingKey).