Skip to main content

relay_auth_msg

Function relay_auth_msg 

Source
pub fn relay_auth_msg(nonce: &[u8]) -> Vec<u8> 
Expand description

Build the exact bytes a client signs to prove control of its identity key to the relay: the domain tag followed by the server’s challenge nonce. The relay (huddle-server) now calls this same function, so the two stay byte-for-byte in sync by construction.