Documentation ¶
Overview ¶
Package introquery is an onion message that verifies a relay is an introducer for a given hidden service, returning its adintro.Ad.
After receiving this message if the intro is valid a client can use a route message to start a connection.
Index ¶
- Constants
- func NewIntroQuery(id nonce.ID, hsk *crypto.Pub, exit *exit.ExitPoint) ont.Onion
- type IntroQuery
- func (x *IntroQuery) Account(res *sess.Data, sm *sess.Manager, s *sessions.Data, last bool) (skip bool, sd *sessions.Data)
- func (x *IntroQuery) Decode(s *splice.Splice) (e error)
- func (x *IntroQuery) Encode(s *splice.Splice) (e error)
- func (x *IntroQuery) GetOnion() interface{}
- func (x *IntroQuery) Handle(s *splice.Splice, p ont.Onion, ng ont.Ngin) (e error)
- func (x *IntroQuery) Len() int
- func (x *IntroQuery) Magic() string
- func (x *IntroQuery) Wrap(inner ont.Onion)
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IntroQuery ¶
type IntroQuery struct { ID nonce.ID // Ciphers is a set of 3 symmetric ciphers that are to be used in their // given order over the reply message from the service. crypto.Ciphers // Nonces are the nonces to use with the cipher when creating the // encryption for the reply message, // they are common with the crypts in the header. crypto.Nonces // Port identifies the type of service as well as being the port used by // the service to be relayed to. Notice there is no IP address, this is // because Indranet only forwards to exits of decentralised services // also running on the same machine. This service could be a proxy, of // course, if configured this way. This could be done by tunneling from // a local Socks5 proxy into Indranet and the exit node also having // this. Key *crypto.Pub ont.Onion }
func (*IntroQuery) GetOnion ¶
func (x *IntroQuery) GetOnion() interface{}
func (*IntroQuery) Len ¶
func (x *IntroQuery) Len() int
func (*IntroQuery) Magic ¶
func (x *IntroQuery) Magic() string
func (*IntroQuery) Wrap ¶
func (x *IntroQuery) Wrap(inner ont.Onion)
Click to show internal directories.
Click to hide internal directories.