OnionToString

Encode a raw Tor v3 address as its human-readable .onion string.

Synopsis

Declared in <netaddress.h>

std::string
OnionToString(std::span<uint8_t const> addr);

Return Value

The .onion string for the given address.

Parameters

NameDescription
addrThe raw Tor v3 address bytes to encode.