Documentation
¶
Overview ¶
Package intro defines a message type that provides information about an introduction point for a hidden service.
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ad ¶
type Ad struct {
// Embed ad.Ad for the common fields
ad.Ad
// Introducer is the key of the node that can forward a Route message to help
// establish a connection to a hidden service.
Introducer *crypto.Pub
// Port is the well known port of protocol available.
Port uint16
// Rate for accessing the hidden service (covers the hidden service routing
// header relaying).
RelayRate uint32
}
Ad is an Intro message that signals that a hidden service can be accessed from a given relay identifiable by its public key.
func New ¶
func New( id nonce.ID, key *crypto.Prv, introducer *crypto.Pub, relayRate uint32, port uint16, expires time.Time, ) (in *Ad)
New creates a new Ad and signs it.
func (*Ad) SpliceNoSig ¶
SpliceNoSig serializes the Ad but stops at the signature.
Click to show internal directories.
Click to hide internal directories.