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
47
48
49
50
51
52
53
54
55
//! The on-chain mint: build, sign, push, and PROVE.
//!
//! Two ceremonies live here. [`did`] mints a `did:chia:` singleton on its own; [`profile`] drives the
//! WHOLE profile — that DID plus a dig-store launched from its coin, committed to a [`seed`]ed SMT —
//! across the two confirmations it takes. **A DID is never minted alone in production**: a profile is
//! the unit a host creates, and [`profile`] is the entry point.
//!
//! The mint is deliberately two calls, not one. [`ProfileMinter::begin_did_mint`] returns a
//! [`PendingMint`] — a pushed bundle, which is not yet a DID — and only
//! [`ProfileMinter::mint_status`] can turn one into a [`MintedDid`], from a sufficiently-buried
//! confirmation of the exact coin the bundle created. A single call that returned a DID on a
//! successful push would be asserting something about the chain that had not happened yet.
//!
//! See [`did`] for the spend construction and the signing gate, and [`evidence`] for the type-level
//! statement of the evidence invariant.
//!
//! [`ProfileMinter::begin_did_mint`]: crate::profile_mint::ProfileMinter::begin_did_mint
//! [`ProfileMinter::mint_status`]: crate::profile_mint::ProfileMinter::mint_status
/// Real evidence values for tests in OTHER modules of this crate.
///
/// The evidence constructors are deliberately unreachable outside [`mint`](self), which is what
/// stops a registry (or anything else) inventing a DID. Tests elsewhere still need genuine
/// evidence, so this module builds it the ONLY legal way — through `from_confirmed`, over a real
/// confirmed [`CoinRecord`](dig_chainsource_interface::CoinRecord). It is `cfg(test)`, so it widens
/// nothing for a consumer, and it fabricates nothing: change a rule and these helpers stop
/// producing values.
pub
pub use ;
pub use BlockingHttpTransport;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ProfileMintStatus;
pub use ProfileSeed;
pub use MintStatus;
pub use ;