SelectiveDisclosure class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

This class adds support for creating Selective Disclosure requests and interpret the responses received.

This implementation of the uPort protocol uses W3C Presentation as the response encoding instead of a shareReq .

Signature:
export declare class SelectiveDisclosure implements IAgentPlugin
Implements: [IAgentPlugin](/docs/api/core.iagentplugin)

Constructors

ConstructorModifiersDescription
(constructor)()(BETA) Constructs a new instance of the SelectiveDisclosure class

Properties

PropertyModifiersTypeDescription
methodsISelectiveDisclosure(BETA)
schemaany(BETA)

Methods

MethodModifiersDescription
createProfilePresentation(args, context)(BETA) Creates profile credentials
createSelectiveDisclosureRequest(args, context)(BETA) Creates a Selective disclosure request, encoded as a JWT.
getVerifiableCredentialsForSdr(args, context)(BETA) Gathers the required credentials necessary to fulfill a Selective Disclosure Request. It uses the IDataStoreORM plugin to query the local database for the required credentials.
validatePresentationAgainstSdr(args, context)(BETA) Validates a Selective Disclosure response encoded as a Presentation