Skip to main content

parse_node_addr

Function parse_node_addr 

Source
pub fn parse_node_addr(s: &str) -> Result<ParsedNodeAddr, CoreError>
Expand description

Parse a string that may be a bare node ID, a ticket string (JSON-encoded NodeAddrInfo), or a JSON object with id and addrs fields.

ISS-023: malformed entries cause a deterministic error rather than being silently discarded before they reach iroh’s dialer.