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
>,
didId: 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.

  • didId - Value from the create DID function.

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

Return value

A successful submission of proof returns no value.