From d32148567f5866a7cd2a77a2f44f846134011c9c Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Mon, 2 Apr 2012 17:06:11 +0200 Subject: Preliminary support for Tor/I2P hidden services There are plans to let Bitcoin function as Tor/I2P hidden service. To do so, we could use the established encoding provided by OnionCat and GarliCat (without actually using those tools) to embed Tor/I2P addresses in IPv6. This patch makes these addresses considered routable, so they can travel over the Bitcoin network in 'addr' messages. This will hopefully make it easier to deploy real hidden service support later. --- src/netbase.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/netbase.h') diff --git a/src/netbase.h b/src/netbase.h index acbcc36d18..1b6d8d59bb 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -42,6 +42,8 @@ class CNetAddr bool IsRFC4862() const; // IPv6 autoconfig (FE80::/64) bool IsRFC6052() const; // IPv6 well-known prefix (64:FF9B::/96) bool IsRFC6145() const; // IPv6 IPv4-translated address (::FFFF:0:0:0/96) + bool IsOnionCat() const; + bool IsGarliCat() const; bool IsLocal() const; bool IsRoutable() const; bool IsValid() const; -- cgit v1.2.3