encryption/RecoveryKeyService Service
File: src/services/encryption/RecoveryKeyService.ts
Overview
Exports
- RecoveryKeyData - interface export
- DerivedKeys - interface export
- RecoveryKeyService - class export
- recoveryKeyService - const export
Classes
RecoveryKeyService
No description available.
Methods:
constructorgetInstancegenerateMnemonicvalidateMnemonicformatMnemonicForDisplayparseMnemonicInputderiveKeysFromMnemonicgetEncryptionKeygetBackupKeyisLoadedsetDerivedKeysclearencryptForBackupdecryptFromBackupgenerateQRDataparseQRDatacatchgenerateVerificationCodeverifyRecoveryPhrasearrayBufferToBase64base64ToArrayBuffer
Properties:
instancederivedKeysmnemonicGENERATION24entropyentropyBytesbitswordsbitStringchecksumBitsfullBitStringiwordCountindexphrasefalsewordlisttruegroupsinputDERIVATIONpurposesseedmnemonicStringencoderseedDataPBKDF2keyMaterialnamederivationsaltmasterBitsiterationshash512keymasterKeyHKDFencryptionKeyinfobackupKeysigningKeynullloadedkeysmemoryENCRYPTIONdataBytesivencryptedciphertextcombinedcombinedArraydecrypteddecoderSUPPORTstructuredatavmtdecodedversionVERIFICATIONhashArraycodeexpectedCodeMETHODSbytesbinary
Interfaces
RecoveryKeyData
No description available.
typescript
interface RecoveryKeyData {
mnemonic: string[] // 12 or 24 words
version: number
createdAt: number
}DerivedKeys
No description available.
typescript
interface DerivedKeys {
encryptionKey: CryptoKey // For encrypting local data
backupKey: CryptoKey // For encrypting server backups
signingKey: CryptoKey // For signing cross-device auth
}Constants
WORDLIST
No description available.
typescript
const WORDLIST = [Source Code Insights
File Size: 31576 characters Lines of Code: 690 Imports: 1
Usage Example
typescript
import { RecoveryKeyData, DerivedKeys, RecoveryKeyService, recoveryKeyService } from '@/services/encryption/RecoveryKeyService'
// Example usage
// Use the exported functionalityThis documentation was automatically generated from the source code.
