Skip to main content

ProofService.generateProof() method

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.

Generate proof from given identity and credential for protocol proof request

Signature:

generateProof(proofReq: ZeroKnowledgeProofRequest, identifier: DID, opts?: ProofGenerationOptions): Promise<ZeroKnowledgeProofResponse>;

Parameters

ParameterTypeDescription
proofReqZeroKnowledgeProofRequestprotocol zkp request
identifierDIDdid that will generate proof
optsProofGenerationOptions(Optional) options that will be used for proof generation

Returns:

Promise<ZeroKnowledgeProofResponse>

Promise<ZeroKnowledgeProofResponse>