Skip to main content

PrivateKeyStoreJson.(constructor)

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Constructs a new instance of the PrivateKeyStoreJson class

Signature:

constructor(jsonStore: VeramoJsonStore, secretBox?: AbstractSecretBox | undefined);

Parameters

ParameterTypeDescription
jsonStoreVeramoJsonStoreThis serves as the JSON object storing data in memory as well as providing an update notification callback to persist this data. The JSON object does not have to be shared with other users of VeramoJsonStore, but it can be.
secretBoxAbstractSecretBox | undefined(Optional) If this is used, then key material is encrypted, even in memory.