pub struct PairedNode {
pub local: NodeId,
pub remote: NodeDescription,
pub tokens: TokenStore,
pub details: Option<ConnectionDetails>,
pub revoked: bool,
}connect-server only.Expand description
One node this endpoint is paired with.
Fields§
§local: NodeIdWhich of our nodes.
remote: NodeDescriptionWho they are.
tokens: TokenStoreThe access tokens that open the door, newest first.
details: Option<ConnectionDetails>The connection details exchanged during pairing: the ones we handed out (7A), or
the ones the client posted when it is the communication server (7B) — in which
case ConnectionDetails::ca_fingerprint is what to pin when connecting to it.
revoked: boolUnpaired by this endpoint, and kept only so the next initiateSession can be told
so: S2C §Unpairing by the communication server — “The next
/[version]/initiateSession HTTPS API request must fail with the
No longer paired response” (the operation is initiateSession, erratum E27).
Implementations§
Source§impl PairedNode
impl PairedNode
Sourcepub fn key(&self) -> PairingKey
pub fn key(&self) -> PairingKey
The key this pairing is stored under.
Sourcepub fn pin(&self) -> Option<Fingerprint>
pub fn pin(&self) -> Option<Fingerprint>
The certificate to pin when this endpoint connects to the peer — a 6B pairing, where the peer is the communication server.