pub fn generate_key_challenge(server_keypair: &KeyPair) -> Result<KeyChallenge>Expand description
Generates a new key challenge with a random nonce
The challenge includes:
- A cryptographically random 32-byte nonce
- The server’s signature over the nonce (for server authentication)
- An expiration timestamp (current time + timeout)
§Arguments
server_keypair- Server’s keypair for signing the nonce
§Returns
A KeyChallenge containing the challenge data