You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/peer_channels.rs
+2-2
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,12 @@
10
10
//! Adding peer channels to webxdc needs upfront negotation of a topic and sharing of public keys so that
11
11
//! nodes can connect to each other. The explicit approach is as follows:
12
12
//!
13
-
//! 1. We introduce a new [GossipTopic](crate::headerdef::HeaderDef::IrohGossipTopic) message header with a random 32-byte TopicId,
13
+
//! 1. We introduce a new [`IrohGossipTopic`](crate::headerdef::HeaderDef::IrohGossipTopic) message header with a random 32-byte TopicId,
14
14
//! securely generated on the initial webxdc sender's device. This message header is encrypted
15
15
//! and sent in the same message as the webxdc application.
16
16
//! 2. Whenever `joinRealtimeChannel().setListener()` or `joinRealtimeChannel().send()` is called by the webxdc application,
17
17
//! we start a routine to establish p2p connectivity and join the gossip swarm with Iroh.
18
-
//! 3. The first step of this routine is to introduce yourself with a regular message containing the `IrohPublicKey`.
18
+
//! 3. The first step of this routine is to introduce yourself with a regular message containing the [`IrohNodeAddr`](crate::headerdef::HeaderDef::IrohNodeAddr).
19
19
//! This message contains the users relay-server and public key.
20
20
//! Direct IP address is not included as this information can be persisted by email providers.
21
21
//! 4. After the announcement, the sending peer joins the gossip swarm with an empty list of peer IDs (as they don't know anyone yet).
0 commit comments