Skip to content

Commit

Permalink
fix: improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
elribonazo committed Apr 17, 2024
1 parent 8ed69f7 commit 6594cab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/prism-agent/Agent.ts
Expand Up @@ -526,6 +526,15 @@ export default class Agent
* @param {Domain.DID} toDID
* @param {ProofTypes[]} proofTypes[]
* @returns
*
* Example usecase: Send a Presentation Request to a specific PeerDID for a Credential issued by a specific issuer
* ```ts
* agent.initiatePresentationRequest(
* Domain.CredentialType.JWT,
* toDID,
* { issuer: Domain.DID.fromString("did:peer:12345"), claims: {email: 'test@test.com'}}
* );
* ```
*/
async initiatePresentationRequest(type: Domain.CredentialType, toDID: Domain.DID, presentationClaims: Domain.PresentationClaims): Promise<RequestPresentation> {
const requestPresentation = await this.agentCredentials.initiatePresentationRequest(
Expand Down

0 comments on commit 6594cab

Please sign in to comment.