Skip to main content

Identifier 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.

Represents some properties and relationships of an IIdentifier that are stored in a TypeORM database for the purpose of keeping track of keys and services associated with a DID managed by a Veramo agent.

Signature:

export declare class Identifier extends BaseEntity

Extends: BaseEntity

Properties

PropertyModifiersTypeDescription
alias?string(BETA) (Optional)
controllerKeyId?string(BETA) (Optional)
didstring(BETA)
issuedClaimsClaim[](BETA)
issuedCredentialsCredential[](BETA)
issuedPresentationsPresentation[](BETA)
keysKey[](BETA)
provider?string(BETA) (Optional)
receivedClaimsClaim[](BETA)
receivedCredentialsCredential[](BETA)
receivedMessagesMessage[](BETA)
receivedPresentationsPresentation[](BETA)
saveDateDate(BETA)
sentMessagesMessage[](BETA)
servicesService[](BETA)
updateDateDate(BETA)

Methods

MethodModifiersDescription
getLatestClaimValue(dbConnection, where)

(BETA) Convenience method to get the most recent information about a subject DID as described by Verifiable Credential claims.

Example:

// get the latest claim value for credentials containing `credentialSubject.name` and this Identifier as subject.
const name = await identifier.getLatestClaimValue({ type: 'name' })

| | setSaveDate() | | (BETA) | | setUpdateDate() | | (BETA) | | shortDid() | | (BETA) |