pub fn generate_join_request( needs_email: bool, email: String, ) -> Result<String, KeyError>
Generate a join request code containing this device’s Ed25519 public key. Creates a keypair if one doesn’t exist yet.