Skip to main content

DIDStoreJson class

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.

An implementation of AbstractDIDStore that uses a JSON object to store the relationships between DIDs, their providers and controllers and their keys and services as they are known and managed by a Veramo agent.

An instance of this class can be used by DIDManager as the data storage layer.

This class must be initialized with a VeramoJsonStore, which serves as the JSON object storing data in memory as well as providing an update notification callback to persist this data. For correct usage, this MUST use the same VeramoJsonStore instance as the one used by KeyManager.

This API may change without a BREAKING CHANGE notice.

Signature:

export declare class DIDStoreJson extends AbstractDIDStore

Extends: AbstractDIDStore

Constructors

ConstructorModifiersDescription
(constructor)(jsonStore)(BETA) Constructs a new instance of the DIDStoreJson class

Methods

MethodModifiersDescription
deleteDID({ did })(BETA)
getDID({ did, alias, provider, })(BETA)
importDID(args)(BETA)
listDIDs(args)(BETA)