pub fn server_secure_handshake_response(
client_pub_key: [u8; 32],
client_nonce: [u8; 16],
client_timestamp: u64,
) -> Result<Message>Expand description
Generates server response to client handshake initialization. Validates client timestamp, generates server key pair and nonce, and returns verification data.
§Returns
A Message::SecureHandshakeResponse containing the server’s public key, nonce, and nonce verification.
§Errors
Returns ProtocolError::HandshakeError if:
- Client timestamp is invalid or too old
- Server keys can’t be locked
- Server secret is missing (when in test mode)