Skip to main content

Crate rift_core

Crate rift_core 

Source
Expand description

Core types and helpers that are shared across the Rift stack.

This crate is intentionally small and dependency-light so it can be reused by native clients, SDKs, and (now) WASM targets. It provides:

  • identity/key handling
  • invite encoding/decoding
  • message and channel identifiers
  • Noise/E2EE key utilities

Re-exports§

pub use error::CoreError;
pub use identity::Identity;
pub use identity::peer_id_from_public_key_bytes;
pub use keystore::KeyStore;
pub use keystore::KeyStoreError;
pub use invite::decode_invite;
pub use invite::encode_invite;
pub use invite::generate_invite;
pub use invite::Invite;
pub use message::ChannelId;
pub use message::MessageId;
pub use message::PeerId;

Modules§

e2ee
E2EE helper functions (X25519 + signatures + HKDF). End-to-end encryption helpers.
error
Error types used by the core crate. Core error types shared across identity, invites, and crypto helpers.
identity
Identity generation and persistence helpers. Identity management: keypair generation, peer-id derivation, and persistence.
invite
Invite creation and parsing helpers. Invite encoding/decoding and helper utilities.
keystore
On-disk keystore helpers for identity rotation and discovery. On-disk identity storage and rotation.
message
Peer/channel/message ID helpers. Identifier types used across the protocol and storage layers.
noise
Noise protocol helpers (session setup). Noise protocol helpers.