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
//! The **profile registry**: the offline, always-readable record of which profiles an account has,
//! which one is active, and which mints are half-finished.
//!
//! # What lives here, and why it is separate from [`model`](crate::model)
//!
//! The registry is the OFFLINE half of an account's profile state — public identifiers only, no
//! key material, no chain access, every read available while the account is locked. The ONLINE half
//! is [`Profile`](crate::model::Profile), the chain-resolved view, attached opportunistically once
//! a `ChainSource` is available. Keeping them apart is what lets a host draw a profile switcher on
//! its first frame instead of after an unlock and a network round trip.
//!
//! # The one rule everything here serves
//!
//! **A profile the chain has not confirmed is not a profile.** [`ProfileAnchor`] can only be built
//! from both halves of a confirmed mint, [`ProfileEntry`] can only be built from an anchor, and a
//! mint that has started but not finished lives in the journal as a
//! [`ProfileMintInProgress`] — which is not a profile and cannot become one except by presenting
//! both evidences.
// The registry IS this module's subject; `registry::registry::ProfileRegistry` re-exported as
// `registry::ProfileRegistry` reads correctly at every call site, and splitting the type across a
// differently-named file to satisfy the lint would only hide it.
pub use ;
pub use ProfileAnchor;
pub use ;
pub use ;
pub use ProfileRegistry;
pub use ;
pub use ProfileVisibility;