Skip to main content

IIdentityStorage interface

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.

storage for identities and profiles

IIdentityStorage

Signature:

export interface IIdentityStorage 

Methods

MethodDescription
getAllIdentities()gets all identity from the data source
getIdentity(identifier)gets identity from the the data source
getProfileById(identifier)gets profile by identifier
getProfileByVerifier(verifier)gets profile by verifier
getProfilesByGenesisIdentifier(genesisIdentifier)gets profile identity by genesis identifiers
saveIdentity(identity)saves identity to the data source
saveProfile(profile)saves profile identity to data