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§
Structs§
- Completed
Pairing - Result of a successfully completed pairing exchange (initiator side).
- Pairing
Protocol - Transport-agnostic pairing protocol state machine.
- Pairing
Response - A response to a pairing request from the responding device.
- Pairing
Session - Ephemeral keypair for a pairing session.
- Pairing
Token - A pairing token for initiating cross-device identity linking.
- Responder
Result - Result of a successful pairing response (responder side).
Enums§
- Protocol
Error - 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.