Skip to main content

IdentityStorage class

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

Implementation of the IIdentityStorage with KV data source

IdentityStorage implements IIdentityStorage interface

Signature:

export declare class IdentityStorage implements IIdentityStorage 

Implements: IIdentityStorage

Constructors

ConstructorModifiersDescription
(constructor)(_identityDataSource, _profileDataSource)Creates an instance of IdentityStorage.

Properties

PropertyModifiersTypeDescription
identitiesStorageKey

static

readonly

(not declared)

storage key for identities

profilesStorageKey

static

readonly

(not declared)

storage key for profiles

Methods

MethodModifiersDescription
getAllIdentities()
getIdentity(identifier)
getProfileById(profileId)
getProfileByVerifier(verifier)
getProfilesByGenesisIdentifier(genesisIdentifier)
saveIdentity(identity)
saveProfile(profile)