verity_dp_zk_host::ic

Function verify_proof

source
pub async fn verify_proof(
    json_string_proofs: Vec<String>,
    notary_pub_key: String,
    config: Config,
) -> Result<VerificationResponse, Box<dyn Error>>
Expand description

Asynchronously verifies a proof using the Internet Computer (IC).

§Arguments

  • json_string_proofs - A vector of JSON strings representing the proofs.
  • notary_pub_key - The public key of the notary.
  • config - Configuration details for the IC environment and verifier canister.

§Returns

  • Result<verity_verify_remote::ic::VerificationResponse, Box<dyn Error>> - A result containing the verification response or an error.