@atala/prism-wallet-sdk / Exports / AgentCredentials
Interface: AgentCredentials
Implemented by
Table of contents
Properties
Methods
- createPresentationForRequestProof
- handlePresentation
- initiatePresentationRequest
- prepareRequestCredentialWithIssuer
- processIssuedCredentialMessage
- verifiableCredentials
Properties
isCredentialRevoked
• isCredentialRevoked: (credential
: Credential
) => Promise
<boolean
>
Type declaration
▸ (credential
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
credential | Credential |
Returns
Promise
<boolean
>
Defined in
src/edge-agent/types/index.ts:63
revealCredentialFields
• revealCredentialFields: (credential
: Credential
, fields
: string
[], linkSecret
: string
) => Promise
<{ [name: string]
: any
; }>
Type declaration
▸ (credential
, fields
, linkSecret
): Promise
<{ [name: string]
: any
; }>
Parameters
Name | Type |
---|---|
credential | Credential |
fields | string [] |
linkSecret | string |
Returns
Promise
<{ [name: string]
: any
; }>
Defined in
src/edge-agent/types/index.ts:60
Methods
createPresentationForRequestProof
▸ createPresentationForRequestProof(request
, credential
): Promise
<Presentation
>
Parameters
Name | Type |
---|---|
request | RequestPresentation |
credential | Credential |
Returns
Promise
<Presentation
>
Defined in
src/edge-agent/types/index.ts:79
handlePresentation
▸ handlePresentation(presentation
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
presentation | Presentation |
Returns
Promise
<boolean
>
Defined in
src/edge-agent/types/index.ts:84
initiatePresentationRequest
▸ initiatePresentationRequest(type
, toDID
, claims
): Promise
<RequestPresentation
>
Parameters
Name | Type |
---|---|
type | JWT |
toDID | DID |
claims | JWTPresentationClaims |
Returns
Promise
<RequestPresentation
>
Defined in
src/edge-agent/types/index.ts:74
▸ initiatePresentationRequest(type
, toDID
, claims
): Promise
<RequestPresentation
>
Parameters
Name | Type |
---|---|
type | AnonCreds |
toDID | DID |
claims | AnoncredsPresentationClaims |
Returns
Promise
<RequestPresentation
>
Defined in
src/edge-agent/types/index.ts:76
prepareRequestCredentialWithIssuer
▸ prepareRequestCredentialWithIssuer(offer
): Promise
<RequestCredential
>
Parameters
Name | Type |
---|---|
offer | OfferCredential |
Returns
Promise
<RequestCredential
>
Defined in
src/edge-agent/types/index.ts:67
processIssuedCredentialMessage
▸ processIssuedCredentialMessage(message
): Promise
<Credential
>
Parameters
Name | Type |
---|---|
message | IssueCredential |
Returns
Promise
<Credential
>
Defined in
src/edge-agent/types/index.ts:70
verifiableCredentials
▸ verifiableCredentials(): Promise
<Credential
[]>
Returns
Promise
<Credential
[]>