challenge

package
v0.7.73 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrChallengeMismatch         warpnet.WarpError = "challenge mismatch"
	ErrChallengeSignatureInvalid warpnet.WarpError = "invalid challenge signature"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SpoofChallenger

type SpoofChallenger struct {
	// contains filtered or unexported fields
}

func NewSpoofChallenger

func NewSpoofChallenger(ctx context.Context) *SpoofChallenger

func (*SpoofChallenger) Challenge

func (s *SpoofChallenger) Challenge(
	pubKey ic.PubKey, level int, streamF StreamFunc,
) (isRepeatable bool, err error)

type StreamFunc

type StreamFunc func(coord []event.ChallengeSample) ([]event.ChallengeSolution, error)

Jump to

Keyboard shortcuts

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