mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
[netaddress] Make OnionToString public
This commit is contained in:
parent
7ef730ca84
commit
c9ba3f836e
2 changed files with 3 additions and 1 deletions
|
@ -588,7 +588,7 @@ static std::string IPv6ToString(Span<const uint8_t> a, uint32_t scope_id)
|
|||
return r;
|
||||
}
|
||||
|
||||
static std::string OnionToString(Span<const uint8_t> addr)
|
||||
std::string OnionToString(Span<const uint8_t> addr)
|
||||
{
|
||||
uint8_t checksum[torv3::CHECKSUM_LEN];
|
||||
torv3::Checksum(addr, checksum);
|
||||
|
|
|
@ -111,6 +111,8 @@ static constexpr size_t ADDR_INTERNAL_SIZE = 10;
|
|||
/// SAM 3.1 and earlier do not support specifying ports and force the port to 0.
|
||||
static constexpr uint16_t I2P_SAM31_PORT{0};
|
||||
|
||||
std::string OnionToString(Span<const uint8_t> addr);
|
||||
|
||||
/**
|
||||
* Network address.
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue