mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-07-09 01:19:28 +00:00
Core is no longer account-aware: the client resolves an account address to signer ids via the account directory, and the signer's verifying-key hex serves as registry key, inbox subscription, and Welcome routing target end to end. The MLS credential stays the full id(). - GroupV2 reads the de-mls member id from the fetched key package and maps it to the signer id the welcome is delivered to. - All account machinery (directory trait, bundle codec, resolution) moves out of core into logos-account; the RegistrationService supertrait and Core::account_directory() are gone, and the client holds its own directory handle. - The account exposes functionality, never a signer: add_delegate_signer does the lamport upsert and signs internally. - Every client acts for an account (ChatClientBuilder::new(account)). DelegateSigner is a pure keypair; the client composes the wire credential from the signer and the account, so the association is client state. addr() is the account address. - resolve_device_ids fails fast (NotAnAccountKey / NoDeviceBundle / Directory) instead of falling back to treating an unresolved address as a signer id. LogosChatClient::open and chat-cli mint and publish a dev account each launch. - EphemeralRegistry keys key packages by hex pubkey like HttpRegistry. Supersedes #155 (routing_id).
28 lines
664 B
TOML
28 lines
664 B
TOML
[package]
|
|
name = "chat-cli"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "chat-cli"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
# Workspace dependencies (sorted)
|
|
crossbeam-channel = { workspace = true }
|
|
logos-account = { workspace = true, features = ["dev"] }
|
|
logos-chat = { workspace = true, features = ["embedded-p2p-delivery"] }
|
|
|
|
# External dependencies (sorted)
|
|
anyhow = "1.0"
|
|
arboard = "3"
|
|
base64 = "0.22"
|
|
clap = { version = "4", features = ["derive"] }
|
|
crossterm = "0.29"
|
|
ratatui = "0.29"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
thiserror = "2"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|