pub struct CommunicationServer {
pub initiate_session_url: String,
pub ca: Fingerprint,
}connect-server only.Expand description
What this endpoint tells a client it should connect to, when this endpoint is the communication server (7A).
A template rather than a ConnectionDetails: the access token in the details is a
secret per pairing — S2C §8A, “The server must generate an access token for
the HTTPS client … by a cryptographically secure pseudorandom number generator” — so
PairingService mints a fresh one for every client and only the URL and the CA are
the host’s to supply. Handing every client the same token lets any one of them open a
session as any other.
Fields§
§initiate_session_url: StringThe base URL of this endpoint’s session-initiation API, without a version:
S2C §8A, initiateSessionUrl “does not include the version number”.
ca: FingerprintThe CA this endpoint’s communication certificate is issued by, sent as
certificateFingerprint.SHA256 so a client can cross-check what it pins.