pub fn pair_session_open(
role: &str,
relay_url: &str,
code_in: Option<&str>,
) -> Result<PairSessionState>Expand description
Stage 1. Open a pair session at the relay.
Side effects:
- Allocates a relay slot for self if not already bound (matches
existing
cli::cmd_pair_*first-run behavior). - Generates code phrase (host) or accepts the typed one (guest).
- Posts our SPAKE2 message to
/v1/pair.
Returns a PairSessionState you should feed to store_insert and then
drive forward via pair_session_try_sas and pair_session_finalize.