1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! # Pubky Messenger
//!
//! A Rust library for secure private messaging using the Pubky protocol.
//!
//! ## Features
//!
//! - End-to-end encrypted messaging
//! - Authentication via pkarr recovery files
//! - Message signature verification
//! - Profile and contact management
//!
//! ## Example
//!
//! ```no_run
//! use pubky_messenger::PrivateMessengerClient;
//! use pkarr::PublicKey;
//!
//! # async fn example() -> anyhow::Result<()> {
//! // Load recovery file
//! let recovery_file = std::fs::read("recovery.pkarr")?;
//!
//! // Create client
//! let client = PrivateMessengerClient::from_recovery_file(&recovery_file, Some("passphrase"))?;
//!
//! // Sign in
//! client.sign_in().await?;
//!
//! // Send a message
//! let recipient = PublicKey::try_from("recipient_public_key")?;
//! client.send_message(&recipient, "Hello, world!").await?;
//!
//! // Get messages
//! let messages = client.get_messages(&recipient).await?;
//! # Ok(())
//! # }
//! ```
pub use ;
pub use ;
pub use ;
pub use Language;