Documentation ¶
Overview ¶
Package intro defines a message type that provides information about an introduction point for a hidden service.
Index ¶
- Constants
- func Gen() codec.Codec
- func Splice(s *splice.Splice, id nonce.ID, key *crypto.Pub, introducer *crypto.Pub, ...)
- type Ad
- func (x *Ad) Decode(s *splice.Splice) (e error)
- func (x *Ad) Encode(s *splice.Splice) (e error)
- func (x *Ad) Len() int
- func (x *Ad) Magic() string
- func (x *Ad) Sign(prv *crypto.Prv) (e error)
- func (x *Ad) Splice(s *splice.Splice)
- func (x *Ad) SpliceNoSig(s *splice.Splice)
- func (x *Ad) Unwrap() interface{}
- func (x *Ad) Validate() bool
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, ) (introAd *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.