Structure
AddOnionResponse
Decoded fields of an ADD_ONION success reply (control-spec.txt §3.27).
struct AddOnionResponse
Overview
Tor emits ServiceID=<id> on success, optionally followed by a PrivateKey=<type>:<blob> line when the command was issued without the DiscardPK flag. This struct carries just those two fields; higher-level code wraps them into an OnionService value along with a creation timestamp.
Note
Conformance is Sendable + Equatable.
Important
privateKey is secret material. Never log or serialise it unprotected — see privateKey for storage guidance.
Topics
Fields
Creating