Initializes storage and loads any existing keypair from localStorage if available
Private
isPrivate
storePrivate
useClears all stored data from both memory and localStorage
Gets an item from storage
The key to retrieve
The stored value as a string, or null if not found
Gets the stored keypair asynchronously
Promise resolving to the keypair or null if not found
Gets the stored keypair synchronously
The keypair or null if not found
Removes an item from both memory and localStorage if available
The key to remove
Stores an item in both memory and localStorage if available
The key to store under
The value to store (must be JSON stringifiable)
Stores a keypair both in memory and localStorage if available
The keypair to store
Storage implementation based on StorageMock Provides a unified storage interface that works in both browser and non-browser environments In browser environments, data is persisted to localStorage as a backup