Optional
keyAn optional property to specify a custom KeyValueStore
instance for key management. If not
provided, LocalKeyManager
uses a default MemoryStore
instance.
This store is responsible for managing cryptographic keys, allowing them to be retrieved,
stored, and managed during cryptographic operations.
The
LocalKeyManagerParams
interface specifies the parameters for initializing an instance ofLocalKeyManager
. It allows the optional inclusion of aKeyValueStore
instance for key management. If not provided, a defaultMemoryStore
instance will be used for storing keys in memory. Note that theMemoryStore
is not persistent and will be cleared when the application exits.