zero-knowledge/src/main/java/com/hedera/hashgraph/zeroknowledge/vp/VpZeroKnowledgeGenerator.java
/**
     * A method to generate a zero knowledge proof for a verifiable presentation document.
     * @param document The verifiable credential document to include in the verifiable presentation.
     * @param presentationMetadata Any needed metadata to include in the zero knowledge proof computation.
     * @return The zero knowledge proof in byte array format.
     * @throws VpDocumentGeneratorException An exception occurred while generating the proof.
     */
A method to generate a zero knowledge proof for a verifiable presentation document.
@param document The verifiable credential document to include in the verifiable presentation.
@param presentationMetadata Any needed metadata to include in the zero knowledge proof computation.
@return The zero knowledge proof in byte array format.
@throws VpDocumentGeneratorException An exception occurred while generating the proof.
A method to generate a zero knowledge proof for a verifiable presentation document . @param document The verifiable credential document to include in the verifiable presentation . @param presentationMetadata Any needed metadata to include in the zero knowledge proof computation . @return The zero knowledge proof in byte array format . @throws VpDocumentGeneratorException An exception occurred while generating the proof .
protected byte[] generateZeroKnowledgeProof(T document, Map<String, Object> presentationMetadata) throws VpDocumentGeneratorException {
        P publicInput = getProofPublicInput(document, presentationMetadata);
        try {
            return zeroKnowledgeProofProvider.createProof(publicInput);
        } catch (ZeroKnowledgeProofProviderException e) {
            throw new VpDocumentGeneratorException(
                    String.format("Cannot generate verifiable presentation from document: %s", document),
                    e
            );
        }
    }
protected byte [ ] generateZeroKnowledgeProof ( T document , Map < String , Object > presentationMetadata ) throws VpDocumentGeneratorException { P publicInput = getProofPublicInput ( document , presentationMetadata ) ; try { return zeroKnowledgeProofProvider . createProof ( publicInput ) ; } catch ( ZeroKnowledgeProofProviderException e ) { throw new VpDocumentGeneratorException ( String . format ( "Cannot generate verifiable presentation from document: %s" , document ) , e ) ; } }
A method to generate a zero knowledge proof for a verifiable presentation document.
A method to generate a zero knowledge proof for a verifiable presentation document .