API Reference
Complete documentation for the IVault interface.
init()
asyncInitialize WASM and prepare crypto environment.
init(config?: VaultConfig): Promise<void>
register()
asyncCreate new identity. Returns DID and recovery code.
register(password: string): Promise<RegistrationResult>
login()
asyncUnlock existing identity.
login(password: string, did?: string): Promise<IdentityInfo>
saveSecret()
asyncEncrypt and store key-value pair.
saveSecret(key: string, value: string): Promise<void>
getSecret()
asyncRetrieve and decrypt secret. Returns null if not found.
getSecret(key: string): Promise<string | null>
lock()
syncClear sensitive data from memory. Logs out user.
lock(): void