@owlmeans/client-did
v0.1.7
Published
Client-side DID wallet service for managing decentralized identity keys in browser environments.
Downloads
26
Readme
@owlmeans/client-did
Client-side DID wallet service for managing decentralized identity keys in browser environments.
Overview
makeWalletService(alias?)— creates the DID wallet service for client context registration- The service wraps
@owlmeans/did'smakeWallet()with browser-compatible storage - Used by the authentication flow when the app uses Ed25519-based DID authentication
Installation
bun add @owlmeans/client-didUsage
Register the wallet service in context setup:
import { makeWalletService } from '@owlmeans/client-did'
// In context.ts
context.registerService(makeWalletService())Access from a component (via auth service):
import { DEFAULT_ALIAS } from '@owlmeans/client-did'
const walletService = context.service(DEFAULT_ALIAS)
const key = await walletService.getKey({ entityId })API
makeWalletService(alias?): WalletService
Creates the DID wallet service. alias defaults to a standard DID wallet alias.
DEFAULT_ALIAS
Default service alias for the wallet service.
Related Packages
@owlmeans/did—makeWalletcalled internally@owlmeans/client-auth— uses the wallet service during authentication
