Skip to main content

auths_pairing_protocol/
lib.rs

1//! Transport-agnostic pairing protocol for the auths identity system.
2//!
3//! This crate implements the cryptographic pairing protocol that allows
4//! cross-device identity linking. It is intentionally free of transport
5//! dependencies (no axum, tower-http, mdns-sd, reqwest) so that mobile
6//! apps can use it with their own transport layer.
7
8mod error;
9mod protocol;
10mod response;
11pub mod sas;
12mod token;
13pub mod types;
14
15pub use error::ProtocolError;
16pub use protocol::{CompletedPairing, PairingProtocol, ResponderResult, respond_to_pairing};
17pub use response::PairingResponse;
18pub use sas::{
19    TransportKey, decrypt_from_transport, derive_sas, derive_transport_key, format_sas_emoji,
20    format_sas_numeric,
21};
22pub use token::{PairingSession, PairingToken, normalize_short_code};
23pub use types::*;