Skip to main content

RELAY_AUTH_DOMAIN

Constant RELAY_AUTH_DOMAIN 

Source
pub const RELAY_AUTH_DOMAIN: &[u8] = b"huddle-relay-auth-v1";
Expand description

huddle 1.1.4: domain-separation prefix for the relay client-auth challenge-response. The client signs RELAY_AUTH_DOMAIN || nonce with its Ed25519 identity key; the relay verifies that signature against the presented pubkey and checks the pubkey hashes to the claimed fingerprint. The distinct domain tag keeps this signature from ever being mistaken for a SignedRoomMessage envelope (which commits a different tag).