Skip to main content

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

Interface: AgentCredentials

Implemented by

Table of contents

Properties

Methods

Properties

isCredentialRevoked

isCredentialRevoked: (credential: Credential) => Promise<boolean>

Type declaration

▸ (credential): Promise<boolean>

Parameters
NameType
credentialCredential
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
NameType
credentialCredential
fieldsstring[]
linkSecretstring
Returns

Promise<{ [name: string]: any; }>

Defined in

src/edge-agent/types/index.ts:60

Methods

createPresentationForRequestProof

createPresentationForRequestProof(request, credential): Promise<Presentation>

Parameters

NameType
requestRequestPresentation
credentialCredential

Returns

Promise<Presentation>

Defined in

src/edge-agent/types/index.ts:79


handlePresentation

handlePresentation(presentation): Promise<boolean>

Parameters

NameType
presentationPresentation

Returns

Promise<boolean>

Defined in

src/edge-agent/types/index.ts:84


initiatePresentationRequest

initiatePresentationRequest(type, toDID, claims): Promise<RequestPresentation>

Parameters

NameType
typeJWT
toDIDDID
claimsJWTPresentationClaims

Returns

Promise<RequestPresentation>

Defined in

src/edge-agent/types/index.ts:74

initiatePresentationRequest(type, toDID, claims): Promise<RequestPresentation>

Parameters

NameType
typeAnonCreds
toDIDDID
claimsAnoncredsPresentationClaims

Returns

Promise<RequestPresentation>

Defined in

src/edge-agent/types/index.ts:76


prepareRequestCredentialWithIssuer

prepareRequestCredentialWithIssuer(offer): Promise<RequestCredential>

Parameters

NameType
offerOfferCredential

Returns

Promise<RequestCredential>

Defined in

src/edge-agent/types/index.ts:67


processIssuedCredentialMessage

processIssuedCredentialMessage(message): Promise<Credential>

Parameters

NameType
messageIssueCredential

Returns

Promise<Credential>

Defined in

src/edge-agent/types/index.ts:70


verifiableCredentials

verifiableCredentials(): Promise<Credential[]>

Returns

Promise<Credential[]>

Defined in

src/edge-agent/types/index.ts:72