Skip to main content

Module app

Module app 

Source

Re-exports§

pub use self::events::AppEvent;
pub use self::events::DiscoveredRoom;

Modules§

events

Structs§

AppHandle
KnownPeerStatus
Lobby-facing view of a known dial peer: persisted address plus runtime “is the connection currently up?” status.

Functions§

canonical_dm_room_id
huddle 0.7: compute the deterministic room_id for a 1-1 DM between two fingerprints. Both peers, regardless of who calls start_direct first, derive identical IDs — no created_at mixing, no creator-fingerprint asymmetry. The pair is sorted lexicographically so the function is commutative.
normalize_to_fingerprint
huddle 0.5.1: parse input as a huddle ID — either HD--prefixed or a bare 24-char hex run with or without dashes — and return it in the canonical lowercase-dashed form xxxx-xxxx-...-xxxx that matches identity::compute_fingerprint’s output. Returns None for anything that isn’t a syntactic ID (the caller falls back to username lookup).
parse_dial_address
Parse a user-entered dial address into a libp2p Multiaddr. Accepts ip:port, [ipv6]:port, or a raw multiaddr starting with /.
salt_len
Public accessor for the Argon2id salt length used when deriving room passphrase keys. Exists so downstream tooling (status pages, debug CLIs, integration tests) can confirm the expected size without re-importing the constant from crypto::passphrase.