- Hierarchical user/device identity system with HD key derivation - Dependency injection for AsyncStorage and Platform - Self-contained TypeScript declarations - Ed25519 keypairs managed by IdentityManager - Deterministic peer ID generation from BIP39 mnemonic
32 lines
914 B
TypeScript
32 lines
914 B
TypeScript
/**
|
|
* Identity Management Component
|
|
*
|
|
* Provides hierarchical user/device identity management with HD key derivation
|
|
*
|
|
* @module identity/1.0.0
|
|
*/
|
|
|
|
// Export factory and helper
|
|
export { createIdentityManager, IdentityFactory } from './IdentityFactory';
|
|
export { AsyncStorageAdapter } from './implementations/AsyncStorageAdapter';
|
|
|
|
// Export implementations (for advanced usage)
|
|
export { IdentityManager } from './implementations/IdentityManager';
|
|
// Export interfaces
|
|
export type {
|
|
DeviceIdentity,
|
|
DeviceInfo,
|
|
IdentityConfig,
|
|
IIdentityFactory,
|
|
IIdentityManager,
|
|
IIdentityStorage,
|
|
UserIdentity,
|
|
} from './interfaces/IIdentity';
|
|
|
|
// Note: Default singleton instance removed - must be created with dependencies
|
|
// Use createIdentityManager() with platform and storage dependencies
|
|
|
|
// Version information
|
|
export const VERSION = '1.0.0';
|
|
export const PROTOCOL_VERSION = '/metatrom/identity/1.0.0';
|