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
Parameter | Type | Description |
---|---|---|
proofReq | ZeroKnowledgeProofRequest | protocol zkp request |
identifier | DID | did that will generate proof |
opts | ProofGenerationOptions | (Optional) options that will be used for proof generation |
Returns:
Promise<ZeroKnowledgeProofResponse>
Promise<ZeroKnowledgeProofResponse>