Skip to main content

Crate auths_pairing_protocol

Crate auths_pairing_protocol 

Source
Expand description

Transport-agnostic pairing protocol for the auths identity system.

This crate implements the cryptographic pairing protocol that allows cross-device identity linking. It is intentionally free of transport dependencies (no axum, tower-http, mdns-sd, reqwest) so that mobile apps can use it with their own transport layer.

Re-exports§

pub use sas::TransportKey;
pub use sas::decrypt_from_transport;
pub use sas::derive_sas;
pub use sas::derive_transport_key;
pub use sas::format_sas_emoji;
pub use sas::format_sas_numeric;
pub use types::*;

Modules§

sas
SAS (Short Authentication String) derivation and transport encryption.
types

Structs§

CompletedPairing
Result of a successfully completed pairing exchange (initiator side).
PairingProtocol
Transport-agnostic pairing protocol state machine.
PairingResponse
A response to a pairing request from the responding device.
PairingSession
Ephemeral keypair for a pairing session.
PairingToken
A pairing token for initiating cross-device identity linking.
ResponderResult
Result of a successful pairing response (responder side).

Enums§

ProtocolError
Protocol-level errors for the pairing exchange.

Functions§

normalize_short_code
Normalize a short code: uppercase, strip spaces/dashes.
respond_to_pairing
Responder-side helper: create a response from a received token.