Skip to main content

make_challenge

Function make_challenge 

Source
pub fn make_challenge(from_did: &str, nonce: &str) -> Challenge
Expand description

Construct a challenge from the initiator’s DID and a caller-supplied nonce.

The nonce must be fresh and single-use; nonce generation is the caller’s responsibility so this function stays pure and deterministic.