Package the Credentials as Presentation for the Selective Disclosure Request
Verifiable presentation refers to a data set containing a subset of verifiable credentials and countersign of an entity, which is used to show the identity to a third party.
Verifiable presentation can also be an empty presentation entity rather than include any verifiable credential.
Example
Usage
This method gets the builder object to generate the presentation of the specified DID.
did is the owner of the presentation; signKey is the authentication key for the owner of the presentation to sign and encapsulate the presentation.
This method applies to adding VerifiableCredential.
VerifiablePresentation.Builder provides a method to set realm, which indicates the applicable domain and address of this presentation.
VerifiablePresentation.Builder provides a method to set nonce, which is a random value used by the sign action.
VerifiablePresentation.Builder provides the encapsulation method, which finally obtains the VerifiablePresentation.
Last updated