Skip to main content

nysiris_core/
lib.rs

1//! Shared, UI-agnostic primitives for Nysiris native clients.
2//!
3//! This crate intentionally has no Nym, Qt, Python, or storage-backend
4//! dependency. It owns the chat identity, the DM wire framing, and the
5//! transport trait that adapters implement.
6
7pub mod contact;
8pub mod conversation;
9pub mod crypto;
10pub mod error;
11pub mod group;
12pub mod identity;
13pub mod ids;
14pub mod message;
15pub mod sealed_file;
16pub mod transport;
17
18pub use contact::Contact;
19pub use conversation::{ConversationSummary, GroupSummary};
20pub use crypto::{SealedDm, DM_AAD};
21pub use error::{CoreError, Result};
22pub use group::{
23    Group, GroupInner, GroupMember, SealedGroupMessage, GROUP_ID_BYTES, GROUP_KEY_BYTES,
24    MAX_GROUP_MEMBERS,
25};
26pub use identity::ChatIdentity;
27pub use message::{ChatMessage, Direction, DmInner, MessageState, MAX_BODY_BYTES};
28pub use transport::{SentPayload, Transport};