Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Add easy way to discover protocol version for issue credential and present proof #44

Open
TimoGlastra opened this issue Oct 18, 2021 · 0 comments

Comments

@TimoGlastra
Copy link
Member

TimoGlastra commented Oct 18, 2021

In the current API designs, when issuing a credential or requesting a proof you need to pass in a protocolVersion parameter. This specifies whether you want to use version 1 or version 2 of the protocol.

We should add an easy method to the CredentialModule or the DiscoveryModule that returns the version of a protocol for a specific connection. This to make the handling of multiple protocols versions as easy as possible. This is only needed when initiating a protocol, as from then we can infer the protocol version from the messages.

  • Do a issue-credential feature discover query with an * for the version.
  • Pick the latest version that we support (2.0 preferred, fallback 1.0)
agent.credentials.getProtocolVersion(connectionId: string): Promise<IssueCredentialProtocolVersion>
@TimoGlastra TimoGlastra added afj Task related to AFJ dx labels Oct 18, 2021
@TimoGlastra TimoGlastra added this to Backlog in Aries Mobile SDK Development via automation Oct 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
afj Task related to AFJ dx nice-to-have
Development

No branches or pull requests

1 participant