Skip to main content

Submit proof

Submits a proof to a verifier, sharing the selected credentials.

Function

holderSubmitProof(
interactionId: InvitationResultProofRequest["interactionId"],
credentials: Record<
PresentationDefinitionRequestedCredential["id"],
PresentationSubmitCredentialRequest
>,
identifierId: string,
keyId: string | undefined
): Promise<void>;

Parameters

  • interactionId - The id associated with a particular verification interaction; value from Handle invitation.

  • submitCredentials or credentials - Set of credentials along with the individual claims from those credentials being submitted.

  • identifierId - Value from the create identifier function. Choose the identifier that was used to accept the credential.

  • keyId - If you choose a DID and the DID supports multiple keys for authentication, specify which key to use. If no key is specified the first suitable key listed will be used.

Depracated
  • didId - Choose the DID that matches the presented credentials.

Return value

A successful submission of proof returns no value.