SSS Key Manager
Self-contained SSS key management library
Installation
pnpm add @learncard/sss-key-managerOverview
Architecture
sss-key-manager/
βββ sss.ts # Shamir split (2-of-3) and reconstruct primitives
βββ sss-strategy.ts # KeyDerivationStrategy implementation
βββ storage.ts # IndexedDB device share persistence
βββ crypto.ts # AES-GCM encryption, PBKDF2 key derivation
βββ passkey.ts # WebAuthn PRF-based share encryption
βββ recovery-phrase.ts # BIP39-style mnemonic β share encoding
βββ qr-crypto.ts # ECDH ephemeral key exchange
βββ qr-login.ts # Cross-device login flow
βββ atomic-operations.ts # Split-and-verify with rollback
βββ api-client.ts # Typed fetch wrapper for lca-api routes
βββ types.ts # All types, re-exports from @learncard/typesKey Types
ContactMethod
SecurityLevel
RecoveryInput
RecoverySetupInput
BackupFile
SSSStrategy
Configuration
Option
Default
Description
Key Methods
Method
Purpose
API Client
Testing
Last updated
Was this helpful?