Initial commit: Identity management component
- 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
This commit is contained in:
31
index.ts
Normal file
31
index.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 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';
|
||||
Reference in New Issue
Block a user