pub fn preamble_line(
carrier: &str,
peer: Option<IpAddr>,
origin: &str,
) -> Result<Vec<u8>, Error>Expand description
The one-line preamble the node trusts on the wire socket.
For carrier "quic": {"v":1,"carrier":"quic","peer":<ip>,"origin":<o>}\n.
For "relay" / "webrtc": the peer field is omitted (no IP is known).