Skip to main content

Crate nysiris_core

Crate nysiris_core 

Source
Expand description

Shared, UI-agnostic primitives for Nysiris native clients.

This crate intentionally has no Nym, Qt, Python, or storage-backend dependency. It owns the chat identity, the DM wire framing, and the transport trait that adapters implement.

Re-exports§

pub use contact::Contact;
pub use conversation::ConversationSummary;
pub use conversation::GroupSummary;
pub use crypto::SealedDm;
pub use crypto::DM_AAD;
pub use error::CoreError;
pub use error::Result;
pub use group::Group;
pub use group::GroupInner;
pub use group::GroupMember;
pub use group::SealedGroupMessage;
pub use group::GROUP_ID_BYTES;
pub use group::GROUP_KEY_BYTES;
pub use group::MAX_GROUP_MEMBERS;
pub use identity::ChatIdentity;
pub use message::ChatMessage;
pub use message::Direction;
pub use message::DmInner;
pub use message::MessageState;
pub use message::MAX_BODY_BYTES;
pub use transport::SentPayload;
pub use transport::Transport;

Modules§

contact
Locally saved peers, petnames, and Nym addresses.
conversation
Per-conversation summaries for roster and chat-list views.
crypto
Sealed direct-message encryption.
error
Shared error and result types.
group
Capability-key rooms, invites, and room message sealing.
identity
The ed25519 chat identity.
ids
Conversation, room, and message id helpers.
message
Stored message types and the signed DM inner envelope.
sealed_file
Encrypted single-blob file helpers.
transport
The transport seam that adapters (Nym, in-memory) implement.