ad

package
v0.1.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package ad is an abstract message type that composes the common elements of all ads - nonce ID, public key (identity), expiry and signature.

The concrete ad types are in subfolders of this package.

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Ad struct {

	// ID is a random number generated for each new add that practically guarantees
	// no repeated hash for a message to be signed with the same peer identity key.
	ID nonce.ID

	// Key is the public identity key of the peer.
	Key *crypto.Pub

	// Expiry is the time after which this ad is considered no longer current.
	Expiry time.Time

	// Sig is the signature, which must match the Key above.
	Sig crypto.SigBytes
}

Ad is an abstract message that isn't actually used, but rather is composed into the rest being the common fields to all ads.

Directories

Path Synopsis
Package addresses defines the message format that provides the network multi-address of a peer with a given public identity key.
Package addresses defines the message format that provides the network multi-address of a peer with a given public identity key.
Package intro defines a message type that provides information about an introduction point for a hidden service.
Package intro defines a message type that provides information about an introduction point for a hidden service.
Package load provides a message type that provides information about the current load level of a node identified by its public key.
Package load provides a message type that provides information about the current load level of a node identified by its public key.
Package peer provides a message type that provides the base information, identity key and relay rate for an Indra relay.
Package peer provides a message type that provides the base information, identity key and relay rate for an Indra relay.
Package services provides a message type for advertising what kinds of exit services a peer provides to clients, including the port number and the cost per megabyte of data.
Package services provides a message type for advertising what kinds of exit services a peer provides to clients, including the port number and the cost per megabyte of data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL