tss

Function verify_proof_of_knowledge

Source
pub fn verify_proof_of_knowledge(
    peer: impl ToFrostIdentifier,
    commitment: &VerifiableSecretSharingCommitment,
    proof_of_knowledge: ProofOfKnowledge,
) -> Result<()>
Expand description

Verifies a proof of knowledge for a given peer, using the provided commitment and proof of knowledge.

Flow:

  1. Converts the peer to a FROST identifier.
  2. Uses the FROST library’s verify_proof_of_knowledge function to verify the proof of knowledge.
  3. Returns the result of the verification.