Skip to content

Want way to describe a relay in messages

Given a Relay (or maybe HasRelayIds?) one should be able to print its identity, both in full and redacted form.

Perhaps this should be Display and Redactable impls on Relay? A method on HasRelayIds? Perhaps there should be a dedicated RelayDescription<'_> type for this?

C-Tor has node_describe and other functions with describe in their name. We should consider whether we like their output format and how much to copy it; there would be value for users in continuity or similarity, but perhaps there are defects we want to remedy.

When we have this it should be used in (at least) tor-hsclient/src/err.rs for the display string for DescriptorError and probably elsewhere.

See !1118 (comment 2894465)

I'm tagging this for HS milestone but it might be relevant to RPC suport, which will need to describe relays and will want to present both machine-readable and human-readable values.