@atala/prism-wallet-sdk / Exports / AnonCredsCredential
Class: AnonCredsCredential
Storable define properties a Domain object must implement to be compatible with Pluto
Hierarchy
-
↳
AnonCredsCredential
Implements
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new AnonCredsCredential(credential
, isRevoked?
): AnonCredsCredential
Parameters
Name | Type | Default value |
---|---|---|
credential | CredentialType | undefined |
isRevoked | boolean | false |
Returns
Overrides
Defined in
src/pollux/models/AnonCredsVerifiableCredential.ts:30
Properties
credentialType
• credentialType: CredentialType
= CredentialType.AnonCreds
Overrides
Defined in
src/pollux/models/AnonCredsVerifiableCredential.ts:26
properties
• properties: Map
<AnonCredsCredentialProperties
, any
>
Overrides
Defined in
src/pollux/models/AnonCredsVerifiableCredential.ts:28
recoveryId
• recoveryId: string
= AnonCredsRecoveryId
Overrides
Defined in
src/pollux/models/AnonCredsVerifiableCredential.ts:27
uuid
• Readonly
uuid: string
Universally Unique Identifier. should be unique across all items.
Inherited from
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
Name | Type |
---|---|
name | string |
Returns
any
Inherited from
Defined in
src/domain/models/Credential.ts:19
isProvable
▸ isProvable(): this is ProvableCredential
Returns
this is ProvableCredential
Inherited from
Defined in
src/domain/models/Credential.ts:23
isRevoked
▸ isRevoked(): boolean
Returns
boolean
Inherited from
Defined in
src/domain/models/Credential.ts:31
isStorable
▸ isStorable(): this is StorableCredential
Returns
this is StorableCredential
Inherited from
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
Name | Type |
---|---|
credentialData | string |
id | string |
issuer | any |
recoveryId | string |
subject | any |
validUntil | any |
Implementation of
Defined in
src/pollux/models/AnonCredsVerifiableCredential.ts:91
fromJson
▸ fromJson(value
): AnonCredsCredential
Parameters
Name | Type |
---|---|
value | unknown |