Table of Contents
Module spoon_ai.identity.storage_client
Storage clients for DID documents and agent cards Supports NeoFS (primary) and IPFS (backup replication)
DIDStorageClient Objects​
class DIDStorageClient()
Unified storage client for DID documents NeoFS primary with IPFS replication
publish_did_document​
def publish_did_document(agent_id: str, did_document: Dict,
agent_card: Dict) -> Tuple[str, str]
Publish DID document and agent card to storage Returns (didDocURI, agentCardURI)
fetch_did_document​
def fetch_did_document(uri: str) -> Dict
Fetch DID document from URI (NeoFS or IPFS)
publish_credential​
def publish_credential(agent_id: str, credential: Dict) -> str
Publish verifiable credential
close​
def close()
Close HTTP clients