Module credentials

Module credentials 

Source
Expand description

Verifiable Credentials for Agent Identity

Implements a subset of the W3C Verifiable Credentials Data Model v2.0 for establishing cryptographic proof of agent identity and capabilities.

§Identity Model

Each agent receives a DID (Decentralized Identifier) using the did:web method:

did:web:cellstate.batterypack.dev:agents:{agent-uuid}

Agents can hold Verifiable Credentials that attest to:

  • Identity (who is this agent?)
  • Capabilities (what can this agent do?)
  • Provenance (who created this agent?)
  • Compliance (EU AI Act attestation)

Structs§

CredentialBuilder
Builder for creating Verifiable Credentials.
CredentialProof
A cryptographic proof attached to a credential.
CredentialSubject
The subject of a credential, including the subject’s DID and claims.
CredentialVerifier
Verifier for Verifiable Credentials.
Did
A Decentralized Identifier (DID) for an agent.
DidDocument
A DID Document containing the agent’s public keys and service endpoints.
ServiceEndpoint
A service endpoint in a DID Document.
VerifiableCredential
A W3C Verifiable Credential.
VerificationMethod
A verification method (public key) in a DID Document.

Enums§

AgentCredentialType
Credential types that can be issued to agents.
CredentialError
Errors that can occur during credential operations.
CredentialIssuer
The issuer of a credential, either a simple DID string or an object with metadata.