Skip to main content

@atala/prism-wallet-sdk / Exports / AnonCredsCredential

Class: AnonCredsCredential

Storable define properties a Domain object must implement to be compatible with Pluto

Hierarchy

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new AnonCredsCredential(credential, isRevoked?): AnonCredsCredential

Parameters

NameTypeDefault value
credentialCredentialTypeundefined
isRevokedbooleanfalse

Returns

AnonCredsCredential

Overrides

Credential.constructor

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:30

Properties

credentialType

credentialType: CredentialType = CredentialType.AnonCreds

Overrides

Credential.credentialType

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:26


properties

properties: Map<AnonCredsCredentialProperties, any>

Overrides

Credential.properties

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:28


recoveryId

recoveryId: string = AnonCredsRecoveryId

Overrides

Credential.recoveryId

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:27


uuid

Readonly uuid: string

Universally Unique Identifier. should be unique across all items.

Inherited from

Credential.uuid

Defined in

src/domain/models/Credential.ts:17

Accessors

claims

get claims(): []

Returns

[]

Overrides

Credential.claims

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:64


credentialDefinitionId

get credentialDefinitionId(): string

Returns

string

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:71


id

get id(): string

Returns

string

Overrides

Credential.id

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:49


issuer

get issuer(): any

Returns

any

Overrides

Credential.issuer

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:75


revoked

get revoked(): any

Returns

any

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:87


schemaId

get schemaId(): string

Returns

string

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:79


subject

get subject(): any

Returns

any

Overrides

Credential.subject

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:83

Methods

getProperty

getProperty(name): any

Parameters

NameType
namestring

Returns

any

Inherited from

Credential.getProperty

Defined in

src/domain/models/Credential.ts:19


isProvable

isProvable(): this is ProvableCredential

Returns

this is ProvableCredential

Inherited from

Credential.isProvable

Defined in

src/domain/models/Credential.ts:23


isRevoked

isRevoked(): boolean

Returns

boolean

Inherited from

Credential.isRevoked

Defined in

src/domain/models/Credential.ts:31


isStorable

isStorable(): this is StorableCredential

Returns

this is StorableCredential

Inherited from

Credential.isStorable

Defined in

src/domain/models/Credential.ts:27


toJSON

toJSON(): CredentialType

Returns

CredentialType

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:105


toStorable

toStorable(): Object

Returns

Object

NameType
credentialDatastring
idstring
issuerany
recoveryIdstring
subjectany
validUntilany

Implementation of

StorableCredential.toStorable

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:91


fromJson

fromJson(value): AnonCredsCredential

Parameters

NameType
valueunknown

Returns

AnonCredsCredential

Defined in

src/pollux/models/AnonCredsVerifiableCredential.ts:115