Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Secret = os.Getenv("SEEDER_KEY")
Secret is a shared secret between the voucher seeder and the node.
Functions ¶
func ComputeChallenge ¶
ComputeChallenge returns the expected answer by hashing the random string with the shared secret.
Types ¶
type Challenger ¶
type Challenger struct {
// contains filtered or unexported fields
}
Challenger is the component responsible for vetting incoming connections.
func (*Challenger) ProcessResponse ¶
ProcessResponse will process the response to a connection challenge.
func (*Challenger) SendChallenge ¶
SendChallenge to a connecting peer.
Click to show internal directories.
Click to hide internal directories.