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
// SPDX-License-Identifier: Apache-2.0
//! Binding the machine's single persistent Iroh endpoint on the
//! *persisted* device node id.
//!
//! This is the private implementation behind the crate-public
//! [`crate::network`] boundary. It deliberately reuses
//! [`super::agent_node_identity`] — the same stable secret key the
//! hosted connection binds — so the box network daemon
//! (heddle#1533) advertises a node id that survives process
//! restarts, which is the acceptance clause the browser claim link
//! relies on (heddle#1620). Minting a fresh key here would silently
//! invalidate every outstanding claim URL.
use ;
use ;
use agent_node_identity;
/// Bind an endpoint on the persisted device node id, reachable
/// through `relay_mode`. The identity is loaded-or-minted exactly
/// once (serialized by the identity write lock); every subsequent
/// bind — including after a restart — reuses the same secret key and
/// therefore the same node id.
pub async
/// The persisted device node id, or `None` when the identity has
/// never been minted. Reads the identity without minting one, so a
/// status probe does not create credential material as a side
/// effect.
pub