Skip to main content

answer_challenge

Function answer_challenge 

Source
pub fn answer_challenge(
    challenge: &Challenge,
    responder_did: &str,
    key: &SigningKey,
) -> ChallengeResponse
Expand description

Sign a challenge, producing a ChallengeResponse the initiator can verify.

Signs signed_message(challenge.nonce, responder_did) with key and embeds the corresponding public key so the verifier needs nothing but the response and the expected DID.