What are Presentation Templates?
As a party looking to verify a credential, you need to communicate to a holder’s wallet what types of credentials you need. In one interaction, you may require a single credential, multiple credentials, or just some parts of information from a credential from an individual.
This information is requested from the credential holder using a Presentation Request. The holder, in turn, will provide the credential in the form of a Verifiable Presentation (a cryptographic proof proving the holder was issued that credential). The Presentation Request itself is a unique single-use request that is derived from a Presentation Template.
The Presentation Template defines what type of credential the verifier is requesting. This template is long-lived in the platform (i.e., it is persisted on your tenant) and is used to create the actual Presentation Request, which expires after five minutes by default. The Presentation Request is then is used by the mobile wallet to display a list of credentials to the user that match the request. The wallet holder can choose to select and send the requested credentials.
All the attributes inside of a presentation request are case-sensitive.
Be sure to check capitalisation and thoroughly test your configuration before running them in production.
There are two types of templates available on MATTR VII, which we will cover in the next sections:
This lets you request one or many full verifiable credentials, including all of the information contained within those credentials.
A privacy-preserving selective disclosure presentation template
This template lets you request only some attributes from a credential and gives the user the option to conceal the information that is not necessary.