Prepare ZK proof generation
Preparation on user side
Preparation on developer side
/**
* Parameter for requests to generate a zkKYC proof.
*/
export type GenZkProofParams<ProofInputType> = {
// An object, containing public ZKP input for the statements to be shown by the generated proof.
input: ProofInputType;
requirements: {
// For the standard of the zkCertificate that should be used for the proof.
zkCertStandard: ZkCertStandard;
// EVM address where the zkCertificate is registered.
registryAddress: string;
};
// Prover to generate the ZKP.
prover: ProverData;
// String with the account address the user is going to use to submit the proof.
userAddress: string;
// Description of disclosures made by the proof
// This is provided by the front-end. The snap can not verify if the prover matches this description.
// General description of the ZKP
description: string;
// Short description of each public input the proof is disclosing
publicInputDescriptions: string[];
};Last updated