Skip to main content

pair_session_try_sas

Function pair_session_try_sas 

Source
pub fn pair_session_try_sas(s: &mut PairSessionState) -> Result<Option<String>>
Expand description

Stage 2. Try to advance a session to SAS-ready. Single non-blocking poll of the relay. Idempotent: re-calling after SAS is cached returns the same digits without further network I/O.

Returns:

  • Ok(Some(formatted))"ABC-DEF" six-digit SAS, ready to display
  • Ok(None) — peer’s SPAKE2 message hasn’t landed yet; try again later
  • Err(...) — relay error, or peer sent malformed message